I have a Realm class defined with "image" property of type NSData. I have set the default value for "image" in +defaultPropertyValues method's NSDictionary return value as @"image":[NSNull null]. This is to indicate no image value has been set.
However, program crashes when saving an Realm object with the following error: [NSNull UTF8String]: unrecognized selector sent to instance 0x10abe9ce0
Can you advise if nil value is not allowed for NSData property in Realm Object. If so, is there a different way to represent empty NSData property.
The issue doesn't exist when a non-nil NSData value is set.
Thank you in advance