From 504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Mon, 5 Apr 2021 08:52:21 +0200 Subject: Fix crashes in *_input functions --- editor/plugins/asset_library_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/plugins/asset_library_editor_plugin.cpp') diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 1345adc8ee..9f29641692 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -606,6 +606,8 @@ void EditorAssetLibrary::_update_repository_options() { } void EditorAssetLibrary::_unhandled_key_input(const Ref &p_event) { + ERR_FAIL_COND(p_event.is_null()); + const Ref key = p_event; if (key.is_valid() && key->is_pressed()) { -- cgit v1.2.3