title: Android Studio - ignores return statement and crashes when debugging
body: <p>Everything was working last night and now all sorts of weirdness.</p>
  
  <p>First, I had a public static method. The declaration was on 2 lines...</p>
  
  <pre><code>public static PlaceOfInterest createFromBitmap(long id, String name, double latitude,
      double longitude, Bitmap thumbnail) {
  
      if (thumbnail == null)
          return new PlaceOfInterest(id, name, latitude, longitude, "");
  
      // Shrink and encode the image
      Bitmap encodedImage = ...
  
      return new PlaceOfInterest(id, name, latitude, longitude, encodedImage);
  }
  </code></pre>
  
  <p>When debugging, android studio only showed values for the first 3 parameters and nothing for longitude and thumbnail, said it couldn't find them. After disabling instant run that problem subsided but now it crashes. </p>
  
  <p>I pass in <code>null</code> for thumbnail. When debugging, it gets to the first return. I step over and instead of returning the position moves straight to the second return, skipping the code inbetween. When I step over this time it just crashes and doesn't end up in the callers try-catch.</p>
  
  <p>Lots of uninstalls, cleans, rebuilds later and still failing.</p>
  
  <p>Android Studio 2.3<br>
  Build #AI-162.3764568, built on February 24, 2017<br>
  JRE: 1.8.0_112-release-b06 amd64<br>
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o<br>
  Android Plugin Version: 2.3.0<br>
  Gradle version: 3.3<br>
  Emulator using nexus 7 with API version 23</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Last thing from logcat...</p>
  
  <pre><code>03-11 01:43:01.390 3737-3737/? I/art: Not late-enabling -Xcheck:jni (already on)
  03-11 01:43:01.828 3737-3737/com.trippin.walkietalkies W/System: ClassLoader referenced unknown path: /data/app/com.trippin.walkietalkies-2/lib/x86
  03-11 01:43:01.843 3737-3737/com.trippin.walkietalkies I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
  </code></pre>