title: Thread 1: EXC_BAD_ACCESS Trying to upload images to Firebase
body: <p>I am trying to upload images to Firebase like this:</p>
  
  <pre><code>let storageRef = Storage().reference()
  if let uploadData = self.profileImageView.image!.pngData() {
                  storageRef.putData(uploadData, metadata: nil, completion: { (metadata, error) in
                      if error != nil {
                          print(error as Any)
                          return
                      }
                      print(metadata as Any)
                  })
              }
  </code></pre>
  
  <p>and it's redirecting me to this code here:</p>
  
  <pre><code> - (void)dispatchAsync:(void (^)(void))block {
    dispatch_async(self.dispatchQueue, block);
  }
  </code></pre>
  
  <p>It does not get past the if let statement. (if let uploadData = self.profileImageView.image!.pngData())</p>
  
  <p>I have no idea why. It does not give me any additional error messages in the console.</p>