You should check for (null) just via
if (email == nil) {
NSLog(@"null2");
}
or just
if (!email) {
NSLog(@"null1");
}
The NSNull
class is there to put null values inside collections that normally use null as a terminator symbol. See the apple docs for further details on the NSNull
class.
8
solved Check Null value