From a5a1c3a03c82106228146d6016002083747dc942 Mon Sep 17 00:00:00 2001 From: Alex Drozd Date: Sun, 14 May 2023 16:04:12 +0200 Subject: [PATCH] check for null event in Viewport::push_input --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index e6043531ac4..d374413d356 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2904,6 +2904,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;