NSString contains: <null> and my application crashes
I have an NSString that is populated with some data returned via JSON.
The code works fine under normal circumstances, but there is a case where I will return JSON.
When I check to see if my NSString == nil or == null test is lost.
But the fact that NSString contains the failure of my application.
So it makes sense in Objective-C? Or just need to do a string comparison and see if the string is equal to not zero, and handle it that way.
It bothers me a bit.
Thanks a lot Code
+3
user440096
source
share4 answers