add check for avoid to send invalid collection pointer on network
@@ -75,6 +75,7 @@ public class OSBTreeCollectionManagerShared extends OSBTreeCollectionManagerAbst
if (ownerUUID != null) {
Map<UUID, OBonsaiCollectionPointer> changedPointers = collectionPointerChanges.get();
+ if(pointer != null && pointer.isValid())
changedPointers.put(ownerUUID, pointer);
}
@@ -124,6 +125,7 @@ public class OSBTreeCollectionManagerShared extends OSBTreeCollectionManagerAbst
final OBonsaiCollectionPointer pointer = collection.getPointer();
Map<UUID, OBonsaiCollectionPointer> changedPointers = collectionPointerChanges.get();
+ if(pointer != null && pointer.isValid())
changedPointers.put(ownerUUID, pointer);
}
