mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-28 03:12:37 +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
|
guard
|
||||||
let object = context.fetchExisting(id) as CoreStoreObject?,
|
let object = context.fetchExisting(id) as CoreStoreObject?,
|
||||||
let rawObject = object.rawObject
|
let rawObject = object.rawObject,
|
||||||
|
!rawObject.isDeleted
|
||||||
else {
|
else {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user