diff options
author | Uday Kiran jandhyala <ukiran@codeaurora.org> | 2014-05-21 18:44:17 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2014-11-04 08:23:16 -0700 |
commit | 9043df532143a9eb751e2b095ae495ae8a5f054e (patch) | |
tree | 5e63e53d4718a7cdf5c8ed1c14ff63e09d00fbc7 /gallerycommon/src/com/android/gallery3d/exif | |
parent | 2f74516bcc7eb0f89f65260e90175b07513aed95 (diff) | |
download | android_packages_apps_Gallery2-9043df532143a9eb751e2b095ae495ae8a5f054e.tar.gz android_packages_apps_Gallery2-9043df532143a9eb751e2b095ae495ae8a5f054e.tar.bz2 android_packages_apps_Gallery2-9043df532143a9eb751e2b095ae495ae8a5f054e.zip |
Fixed NullPointerException when EXIF data is invalid
For some images with no / invalid EXIF data, Gallery crashes
Fixed this bug by catching NullPointerException
Change-Id: I656fe6d526c981933c3d6eeefe67cda860206e2d
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/exif')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/exif/ExifInterface.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/exif/ExifInterface.java b/gallerycommon/src/com/android/gallery3d/exif/ExifInterface.java index a1cf0fc85..87db689e8 100644 --- a/gallerycommon/src/com/android/gallery3d/exif/ExifInterface.java +++ b/gallerycommon/src/com/android/gallery3d/exif/ExifInterface.java @@ -732,7 +732,7 @@ public class ExifInterface { * @param inStream an InputStream containing a jpeg compressed image. * @throws IOException */ - public void readExif(InputStream inStream) throws IOException { + public void readExif(InputStream inStream) throws IOException, NullPointerException { if (inStream == null) { throw new IllegalArgumentException(NULL_ARGUMENT_STRING); } |