summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-09-19 13:26:50 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-19 13:26:50 +0200
commit1eda8c24320f107d354c2d53a390a839703ec15a (patch)
treebc204ca42e078976277aa0d0d1f923171fcad709
parent63c0dc690e06731224e88911ed16d1b798b681b5 (diff)
Fix possible crash in editor help
-rw-r--r--editor/editor_help_search.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index 7e7d7ca418..1b8146a0f0 100644
--- a/editor/editor_help_search.cpp
+++ b/editor/editor_help_search.cpp
@@ -324,11 +324,16 @@ bool EditorHelpSearch::Runner::_phase_match_classes_init() {
}
bool EditorHelpSearch::Runner::_phase_match_classes() {
+ if (!iterator_doc) {
+ return true;
+ }
+
DocData::ClassDoc &class_doc = iterator_doc->value;
if (class_doc.name.is_empty()) {
++iterator_doc;
return false;
}
+
if (!_is_class_disabled_by_feature_profile(class_doc.name)) {
ClassMatch match;
match.doc = &class_doc;