diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 03746fb8b70..aaa2d7d0d1e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3202,7 +3202,7 @@ Ref EditorNode::get_class_icon(const String &p_class, const String &p_f } } - if (p_fallback.length()) + if (p_fallback.length() && gui_base->has_icon(p_fallback, "EditorIcons")) return gui_base->get_icon(p_fallback, "EditorIcons"); return NULL;