Browse Source

Merge pull request #47354 from lucicam/3.x

Fix failure in set_primary_interface when parameter is null
Rémi Verschelde 4 years ago
parent
commit
6c3e6a5109
1 changed files with 1 additions and 0 deletions
  1. 1 0
      servers/arvr_server.cpp

+ 1 - 0
servers/arvr_server.cpp

@@ -318,6 +318,7 @@ Ref<ARVRInterface> ARVRServer::get_primary_interface() const {
 };
 
 void ARVRServer::set_primary_interface(const Ref<ARVRInterface> &p_primary_interface) {
+	ERR_FAIL_COND(p_primary_interface.is_null());
 	primary_interface = p_primary_interface;
 
 	print_verbose("ARVR: Primary interface set to: " + primary_interface->get_name());