summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorrune-scape <allie.smith.epic@gmail.com>2022-12-01 16:47:02 -0500
committerrune-scape <allie.smith.epic@gmail.com>2022-12-01 16:47:02 -0500
commit0591f0ad370d6391c2fd9843403b0f7f17b3ce39 (patch)
tree2a6883c9d9c1c5fd971fa4c08d4f4a89c1dc1f30 /editor
parent55dae301777ba609c3255026f9a9852a0dbfd43b (diff)
Fix editor help crash
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_help_search.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index 286dcf4b8e..b48fbb805a 100644
--- a/editor/editor_help_search.cpp
+++ b/editor/editor_help_search.cpp
@@ -443,6 +443,10 @@ bool EditorHelpSearch::Runner::_phase_member_items_init() {
}
bool EditorHelpSearch::Runner::_phase_member_items() {
+ if (!iterator_match) {
+ return true;
+ }
+
ClassMatch &match = iterator_match->value;
if (!match.doc || match.doc->name.is_empty()) {