summaryrefslogtreecommitdiff
path: root/editor/plugins/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-05 11:54:08 +0200
committerGitHub <noreply@github.com>2021-04-05 11:54:08 +0200
commit77dc4c3cb6b59e826699c1590bc26b071e868216 (patch)
tree5ba2509b65b1a9e48d916616e08c593688ee5a14 /editor/plugins/asset_library_editor_plugin.cpp
parent789646e2010632908b0569c64190b1b37e033cb8 (diff)
parent504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (diff)
Merge pull request #47636 from qarmin/input
Fix crashes in *_input functions
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index 904517b119..fd47d9964e 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/editor/plugins/asset_library_editor_plugin.cpp
@@ -613,6 +613,8 @@ void EditorAssetLibrary::_update_repository_options() {
}
void EditorAssetLibrary::_unhandled_key_input(const Ref<InputEvent> &p_event) {
+ ERR_FAIL_COND(p_event.is_null());
+
const Ref<InputEventKey> key = p_event;
if (key.is_valid() && key->is_pressed()) {