Skip to content

Commit

Permalink
Merge pull request #80256 from garychia/stack_var_debug
Browse files Browse the repository at this point in the history
Avoid retrieving the object ID of a stack variable if it is nil
  • Loading branch information
akien-mga committed Aug 9, 2023
2 parents 835957b + 8da6641 commit 75c979e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/debugger/editor_debugger_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void EditorDebuggerInspector::add_stack_variable(const Array &p_array) {
PropertyHint h = PROPERTY_HINT_NONE;
String hs;

if (var.var_type == Variant::OBJECT) {
if (var.var_type == Variant::OBJECT && v) {
v = Object::cast_to<EncodedObjectAsID>(v)->get_object_id();
h = PROPERTY_HINT_OBJECT_ID;
hs = "Object";
Expand Down

0 comments on commit 75c979e

Please sign in to comment.