mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-15 05:33:31 +01:00
prevent creation of ObjectSnapshot if object is already deleted
This commit is contained in:
@@ -217,7 +217,8 @@ extension CoreStoreObject {
|
||||
|
||||
guard
|
||||
let object = context.fetchExisting(id) as CoreStoreObject?,
|
||||
let rawObject = object.rawObject
|
||||
let rawObject = object.rawObject,
|
||||
!rawObject.isDeleted
|
||||
else {
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user