diff --git a/modules/navigation/rvo_agent.cpp b/modules/navigation/rvo_agent.cpp index a295bd56f36..2bec4c95d08 100644 --- a/modules/navigation/rvo_agent.cpp +++ b/modules/navigation/rvo_agent.cpp @@ -65,8 +65,9 @@ void RvoAgent::dispatch_callback() { return; } Object *obj = ObjectDB::get_instance(callback.id); - if (obj == nullptr) { + if (!obj) { callback.id = ObjectID(0); + return; } Variant::CallError responseCallError;