Merge pull request #62777 from object71/potential-fix-for-crash-error-expand

This commit is contained in:
Rémi Verschelde 2022-07-06 16:27:10 +02:00 committed by GitHub
commit 5a4d1bff79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1422,6 +1422,10 @@ bool ScriptEditorDebugger::is_skip_breakpoints() {
void ScriptEditorDebugger::_error_activated() {
TreeItem *selected = error_tree->get_selected();
if (!selected) {
return;
}
TreeItem *ci = selected->get_first_child();
if (ci) {
selected->set_collapsed(!selected->is_collapsed());
@ -1430,6 +1434,11 @@ void ScriptEditorDebugger::_error_activated() {
void ScriptEditorDebugger::_error_selected() {
TreeItem *selected = error_tree->get_selected();
if (!selected) {
return;
}
Array meta = selected->get_metadata(0);
if (meta.size() == 0) {
return;