diff --git a/servers/camera_server.cpp b/servers/camera_server.cpp index b06f32417c09..ee4a2e148b6f 100644 --- a/servers/camera_server.cpp +++ b/servers/camera_server.cpp @@ -99,6 +99,8 @@ Ref CameraServer::get_feed_by_id(int p_id) { }; void CameraServer::add_feed(const Ref &p_feed) { + ERR_FAIL_COND(p_feed.is_null()); + // add our feed feeds.push_back(p_feed);