Enhance null checking for input event

This commit is contained in:
Nong Van Tinh
2022-11-27 15:01:34 +07:00
parent 4769aa4499
commit ffbaa7fff0
14 changed files with 30 additions and 0 deletions

View File

@@ -2402,6 +2402,8 @@ void TextEdit::_get_minimap_mouse_row(const Point2i &p_mouse, int &r_row) const
}
void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
ERR_FAIL_COND(p_gui_input.is_null());
double prev_v_scroll = v_scroll->get_value();
double prev_h_scroll = h_scroll->get_value();