Closed akramhussein closed 6 years ago
I've checked and constructWith
in extension List : EVCustomReflectable
from file RealmListEVCustomReflectable.swift) is called.
The error comes from the function RLMArrayValidateMatchingObjectType in RLMArray.
As you can see in the error message the value is empty but it is a NSDictionary.
I was able to reproduce the issue.
If you have a List
I will have a look if I can fix the .toDictionary() for List
Ah, there was a bug in the toCodableValue of RealmListEVReflectable.swift I will publish the fix now. It should be available in about an hour.
It's published as version 5.5.6
Thank you so much - this fixed the issue 👍
Using the following model, when I convert an object to an NSDictionary and insert using realm's
create
method, I receive a crash as seen below.I've tried:
skipProperty
step to check count of 0 on NSArray, NSDictionary, [String].propertyConverters
but it never gets calledModel
Error:
Seems its trying to parse an empty array, which is being stored as an empty NSDictionary.