Bug Closed · Resolved

Parsing unset variable with PAPI causes internal error instead of returning "null"

#5241 opened by Unknown 2 years ago

Unknownreported this bug

Summary

Parsing unset variable with PAPI causes internal error instead of returning "null"

Steps to reproduce

  1. Attempt to parse a variable with PAPI for a variable that doesn't exist/isn't set
  2. /papi parse me %mythic_var_thisvardoesntexist%

Current behavior

Returning Internal Error

Intended correct behavior

Should return "Null"

Debug log snippet

https://pastebin.com/BT58qzMt Dev 5.7.0

Proposed fixes

Add catch if the variable is null to return null on placeholder

Unknowncommented

To further corroborate this: depending on the specific mythic placeholder you try to use this type of behavior changes. Sometimes it's an Internal Error, sometimes it just outputs an empty string, sometimes it's the string "[Error]"

Sign in to join the discussion.