summaryrefslogtreecommitdiff
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-07-24 17:46:02 -0700
committerK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-07-24 17:46:02 -0700
commitfb2b26eec399b88e2191e375eb6ba035a8405e87 (patch)
treeeae13d310c1bf8c2b5009ff51aaf86972abd619e /editor/editor_inspector.cpp
parenta1f0ea5d19dfdd086eea2960e7f7b2f618fb5334 (diff)
Avoid crash when when the editor_property_map is empty.
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 1711b23547..b610e09545 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -3558,7 +3558,7 @@ void EditorInspector::_notification(int p_what) {
if (refresh_countdown <= 0) {
for (const KeyValue<StringName, List<EditorProperty *>> &F : editor_property_map) {
for (EditorProperty *E : F.value) {
- if (!E->is_cache_valid()) {
+ if (E && !E->is_cache_valid()) {
E->update_property();
E->update_revert_and_pin_status();
E->update_cache();