From 52c8c8c174b87b785abeec48ba23a915e859aa9a Mon Sep 17 00:00:00 2001 From: Alex Drozd Date: Thu, 29 Jun 2023 16:03:20 +0200 Subject: [PATCH] check for null event in Viewport::push_input (cherry picked from commit a5a1c3a03c82106228146d6016002083747dc942) --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 7fb5dc5e7c5..73a046fb680 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2833,6 +2833,7 @@ bool Viewport::_sub_windows_forward_input(const Ref &p_event) { void Viewport::push_input(const Ref &p_event, bool p_local_coords) { ERR_FAIL_COND(!is_inside_tree()); + ERR_FAIL_COND(p_event.is_null()); if (disable_input) { return;