title: ExifInterface bug with Nexus 5
body: <p>In my Android app, I am using the camera by using the <code>android.media.action.IMAGE_CAPTURE</code> intent. I then use ExifInterface because I need to send the miniature of the photo to my server:</p>
  
  <pre><code>ExifInterface exif = new ExifInterface(GetinnersActivity.this.getExternalFilesDir(null).toString() + File.separator + fileName);
                                  byte[] thumbnail = exif.getThumbnail();
                                  String miniature = Base64.encodeToString(thumbnail,Base64.DEFAULT); //This line crashes on Nexus 5
  </code></pre>
  
  <p>I don't have any problem with others phones, but Nexus 5 crashes when trying to execute the last line of code I provided. The Nexus 5 is running on Android 5.1.1. In my Android Manifest, </p>
  
  <pre><code>&lt;uses-sdk
          android:minSdkVersion="17"
          android:targetSdkVersion="19" /&gt;
  </code></pre>
  
  <p>I was wondering if that's due to some known bug with Nexus 5 or if I am doing something wrong.</p>
  
  <pre><code>06-21 19:49:55.748: E/AndroidRuntime(29256): java.lang.NullPointerException: Attempt to get length of null array
  06-21 19:49:55.748: E/AndroidRuntime(29256):    at android.util.Base64.encode(Base64.java:494)
  06-21 19:49:55.748: E/AndroidRuntime(29256):    at android.util.Base64.encodeToString(Base64.java:456)
  </code></pre>