diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 37f0ca449d73..72f678483652 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -140,6 +140,9 @@ void CurveEdit::_notification(int p_what) { void CurveEdit::gui_input(const Ref &p_event) { ERR_FAIL_COND(p_event.is_null()); + if (curve.is_null()) { + return; + } Ref k = p_event; if (k.is_valid()) {