diff --git a/libraries/entities/src/EntityTree.cpp b/libraries/entities/src/EntityTree.cpp index 4d0211a1b7..d391dc8be1 100644 --- a/libraries/entities/src/EntityTree.cpp +++ b/libraries/entities/src/EntityTree.cpp @@ -2285,7 +2285,10 @@ bool EntityTree::sendEntitiesOperation(const OctreeElementPointer& element, void if (args->otherTree) { args->otherTree->withWriteLock([&] { EntityItemPointer entity = args->otherTree->addEntity(newID, properties); - entity->deserializeActions(); + if (entity) { + entity->deserializeActions(); + } + // else: there was an error adding this entity }); } return newID;