Browse Source

Merge pull request #107133 from timothyqiu/nothing

Fix crash when inspecting Variant export variable
Rémi Verschelde 3 months ago
parent
commit
3de0fa7b09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_settings_dialog.cpp

+ 1 - 1
editor/editor_settings_dialog.cpp

@@ -1111,7 +1111,7 @@ void EditorSettingsPropertyWrapper::setup(const String &p_property, EditorProper
 }
 
 bool EditorSettingsInspectorPlugin::can_handle(Object *p_object) {
-	return p_object->is_class("SectionedInspectorFilter") && p_object != current_object;
+	return p_object && p_object->is_class("SectionedInspectorFilter") && p_object != current_object;
 }
 
 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) {