I am seeing something very odd and I'm wondering if anyone else has seen it.
I have a CBLModel, "Co" and an instance of that in "co". I can NSLog the document with NSLog(@"doc: %@", co.document.properties) and see the following. doc: { "_id" = f0550298e5914ca18c377bdeaed4795c; "_rev" = "1-94ea5906d0daee5f79ddc9de4eb37935"; addr1 = "<null>"; addr2 = "<null>"; city = "<null>"; "created_at" = "2014-08-15T05:22:01Z"; email = "<null>"; "est_terms" = "<null>"; "inv_terms" = "<null>"; name = JJCo; phone = "<null>"; pic = ""; plan = STARTER; postal = "<null>"; slug = "jjco.leveler.com"; state = "<null>"; taxRate = "0.0825"; taxType = "<null>"; type = co; } *I can NSLog(@"co.addr1 %@", co.addr1) and see "co.addr1 <null>"* *While trying to assign the value to a UITextField, (an IBOutlet at "self.addr1") I have successful used * * self.addr.text = co.addr1 ? co.addr1 : @""; * * for quite some time.* *But now I see the following error:* * -[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7e8068* *2014-08-15 15:13:57.448 lvlrios[43935:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7e8068'* *I have tried all sorts of wonkery... from (id)[NSNull null] == co.addr1 to the example above and many other caffeine fueled attempts.* *I have never encountered this problem because cb lite seems to insert an empty string for NSString members on a Model whereas couchbase-python seems to put nulls. I think from a JSON standpoint, the null is more correct but I'm falling down trying to handle records created by python that have been replicated into my cbmob db within ios.* *Any help is GREATLY appreciated.* *Thanks,* *Jeremy* -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1343d943-89b8-49d2-b4d2-f7d3fbe0ee45%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.