Skip to content

Commit

Permalink
Merge pull request #47571 from lucicam/master
Browse files Browse the repository at this point in the history
Fix crash caused by null parameter passed to CameraServer.add_feed()
  • Loading branch information
akien-mga authored Apr 3, 2021
2 parents 8f7f584 + c158a63 commit 4a65e69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/camera_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Ref<CameraFeed> CameraServer::get_feed_by_id(int p_id) {
};

void CameraServer::add_feed(const Ref<CameraFeed> &p_feed) {
ERR_FAIL_COND(p_feed.is_null());

// add our feed
feeds.push_back(p_feed);

Expand Down

0 comments on commit 4a65e69

Please sign in to comment.