Exception if nil or <null>
问题 Im pull the location of a pic from a php script and if there is no picture location it displays "null" for the location in the JSON output. This is throwing an exception in my code. Here is the code which is not working: NSString *piclocation = picloc; if(piclocation == nil || @"null"){ }else{ NSString *mutableUrlString = @"https://www.mypage.com/uploads"; mutableUrlString = [mutableUrlString stringByAppendingString: piclocation]; NSLog(mutableUrlString); NSURL *url = [NSURL URLWithString: