From c323df2d8a7f7bce72496244b6f3730b138cd1f6 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 5 Jun 2025 14:51:34 +0800 Subject: [PATCH] Fix crash when inspecting Variant export variable --- editor/editor_settings_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_settings_dialog.cpp b/editor/editor_settings_dialog.cpp index f678f497fa..6e65af8218 100644 --- a/editor/editor_settings_dialog.cpp +++ b/editor/editor_settings_dialog.cpp @@ -1107,7 +1107,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 p_usage, const bool p_wide) {