diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-04-05 08:52:21 +0200 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-04-05 08:52:21 +0200 |
commit | 504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (patch) | |
tree | 4dc94056680fd757e2b99197c2c3518990755202 /editor/plugins/asset_library_editor_plugin.cpp | |
parent | a864a703ee27065795c6297aaeb72ed753d0f279 (diff) |
Fix crashes in *_input functions
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 2 |
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 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<InputEvent> &p_event) { + ERR_FAIL_COND(p_event.is_null()); + const Ref<InputEventKey> key = p_event; if (key.is_valid() && key->is_pressed()) { |