Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1664

Closed
Open
Created Jul 16, 2024 by JpegIsMe@JpegIsMeReporter

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
Assign to
None
Milestone
None
Assign milestone
Time tracking