title: App crashes when requesting location and user does nothing
body: <p>I have a button that uses the user's location to search around them. If they have not granted/denied permission to use their location yet, it requests the permission</p>
  
  <p>Relevant code:</p>
  
  <pre><code>func updateLocationStatus(){
      locationEnabled = CLLocationManager.locationServicesEnabled()
      appLocationEnabled = CLLocationManager.authorizationStatus()
  }
  
  @IBAction func searchNearby(sender: UIButton) {
      updateLocationStatus()
      if appLocationEnabled == CLAuthorizationStatus.Denied {
          //Show an alert to let them know they've denied location permissions
          presentViewController(alert, animated: true, completion: nil)
      }
      else if appLocationEnabled == CLAuthorizationStatus.NotDetermined || 
          appLocationEnabled != CLAuthorizationStatus.AuthorizedWhenInUse &amp;&amp;
          appLocationEnabled != CLAuthorizationStatus.AuthorizedAlways{
          locationManager.requestWhenInUseAuthorization()
      }
      else{
          activityIndicator.startAnimating()
          locationManager.requestLocation()
      }
  }
  </code></pre>
  
  <p>It works fine when used normally. However, if you let the "Allow app to use your location [Don't Allow] [Allow]" alert sit there for about 5 seconds, the app crashes. The line jumped to in Xcode causing the error is </p>
  
  <pre><code>locationManager.requestWhenInUseAuthorization()
  </code></pre>
  
  <p>and the error provided is</p>
  
  <blockquote>
    <p>Thread 1: EXC_BAD_ACCESS (code=2, address=0xsomeaddress)</p>
  </blockquote>
  
  <p>I don't even know where to begin to fix this because the error tells me nothing and the functionality works perfectly fine, except for when you do nothing too long</p>