title: Exception if nil or <null>
body: <p>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:</p>
  
  <pre><code>    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: mutableUrlString];
  UIImage *image = [UIImage imageWithData: [NSData dataWithContentsOfURL:url]]; 
  imageView.image = image;
  }
  </code></pre>
  
  <p>The error is : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '<em>*</em> -[NSNull length]: unrecognized selector sent to instance 0x98d5a0'
  Any suggestions?</p>