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 /scene/gui/line_edit.cpp | |
| parent | a864a703ee27065795c6297aaeb72ed753d0f279 (diff) | |
| download | redot-engine-504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1.tar.gz | |
Fix crashes in *_input functions
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index d1cd73c803..2d8eb3191c 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -215,6 +215,8 @@ void LineEdit::_delete(bool p_word, bool p_all_to_right) { } void LineEdit::_gui_input(Ref<InputEvent> p_event) { + ERR_FAIL_COND(p_event.is_null()); + Ref<InputEventMouseButton> b = p_event; if (b.is_valid()) { |
