mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:32 +01:00
prevent creation of ObjectSnapshot if object is already deleted
This commit is contained in:
1 parent
4ec2b2e311
commit
f136549b46
1 file changed
+2
-1
@@ -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