Hi,
If the database value column = NULL, an error occurs "Terminating app due to uncaught exception 'NSInvalidArgumentException', setNilValueForKey : could not set nil as the value".
- (void)decodeFieldValue:(id)value intoPropertyName:(NSString *)propertyName
{
if (value == [NSNull null]) value = nil;
if (class_getProperty(self.class, propertyName.UTF8String)) {
[self setValue:[self unserializedRepresentationOfDatabaseValue:value forPropertyNamed:propertyName] forKeyPath:propertyName];
}
}
Hi, If the database value column = NULL, an error occurs "Terminating app due to uncaught exception 'NSInvalidArgumentException', setNilValueForKey : could not set nil as the value".
This happens when the value = [NSNull null].