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

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

Edited Jul 16, 2024 by JpegIsMe
Assignee Loading
Time tracking Loading