In Android builds, I sometimes see this error:
NullReferenceException: Object reference not set to an instance of an object.
at Unity.Entities.AttachToEntityClonerInjection.InstantiateCompanionComponentDelegate (System.Int32* srcArray, System.Int32 componentCount, Unity.Entities.Entity* dstEntities, System.Int32* dstCompanionLinkIndices, System.Int32* dstComponentLinkIds, System.Int32* dstArray, System.Int32 instanceCount, Unity.Entities.ManagedComponentStore managedComponentStore) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.ManagedComponentStore.Playback (Unity.Entities.ManagedDeferredCommands& managedDeferredCommands) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.EntityDataAccess.PlaybackManagedChanges () [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.EntityDataAccess.EndStructuralChanges (Unity.Entities.EntityComponentStore+ArchetypeChanges& changes) [0x00000] in <00000000000000000000000000000000>:0
at Unity.Entities.EntityCommandBuffer.PlaybackInternal (Unity.Entities.En
I have absolutely no idea why this is throwing a nullref exception. There’s no documentation on AttachToEntityClonerInjection.
Any help or pointers would be appreciated.