diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 7148cda5c47..e19e069282b 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1456,6 +1456,10 @@ void Viewport::_gui_show_tooltip() { gui.tooltip_popup = NULL; } + if (!gui.tooltip) { + return; + } + Control *rp = gui.tooltip->get_root_parent_control(); if (!rp) return;