diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index 41788de096b..8fd6745044f 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -2232,6 +2232,7 @@ Variant VisualScriptFunctionState::_signal_callback(const Variant **p_args, int } void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p_signal, Array p_binds) { + ERR_FAIL_NULL(p_obj); Vector binds; for (int i = 0; i < p_binds.size(); i++) { binds.push_back(p_binds[i]);