+managedObjectKeysByPropertyKey does not support NSNull, despite docs
ainopara opened this issue · comments
Zheng Li commented
replace all the
if (managedObjectKey == nil)
to
if (managedObjectKey == nil || [managedObjectKey isEqual:[NSNull null]])
will resolve the crash issue.
Justin Spahr-Summers commented
It sounds like you've specified NSNull
where it isn't allowed. Can you please share the actual code you're using?
Zheng Li commented
Yes, I assign keys that not be used to NSNull.null. like
@"history": NSNull.null
Remove those null things will make it work again without modify the adapter.
Justin Spahr-Summers commented
Ah, I see—it looks like the documentation for +managedObjectKeysByPropertyKey
is incorrect. Sorry about that.
I'll update this issue to clarify the problem.