Skip to content

Commit c323df2

Browse files
committed
Fix crash when inspecting Variant export variable
1 parent 978b387 commit c323df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/editor_settings_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ void EditorSettingsPropertyWrapper::setup(const String &p_property, EditorProper
11071107
}
11081108

11091109
bool EditorSettingsInspectorPlugin::can_handle(Object *p_object) {
1110-
return p_object->is_class("SectionedInspectorFilter") && p_object != current_object;
1110+
return p_object && p_object->is_class("SectionedInspectorFilter") && p_object != current_object;
11111111
}
11121112

11131113
bool EditorSettingsInspectorPlugin::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const BitField<PropertyUsageFlags> p_usage, const bool p_wide) {

0 commit comments

Comments
 (0)