Add null check to ScriptEditor get_current_tab_control() call
This fixes #10517
This commit is contained in:
parent
b3ff7ca62e
commit
24bc47b179
1 changed files with 4 additions and 1 deletions
|
@ -2072,7 +2072,10 @@ void ScriptEditor::_update_selected_editor_menu() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorHelp *eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
EditorHelp *eh = NULL;
|
||||||
|
if (tab_container->get_current_tab_control())
|
||||||
|
eh = tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
||||||
|
|
||||||
if (eh) {
|
if (eh) {
|
||||||
script_search_menu->show();
|
script_search_menu->show();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue