prevent creation of ObjectSnapshot if object is already deleted

This commit is contained in:
John Estropia
2020-10-09 20:14:04 +09:00
parent 4ec2b2e311
commit f136549b46

View File

@@ -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