summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/exif
diff options
context:
space:
mode:
authorUday Kiran jandhyala <ukiran@codeaurora.org>2014-05-21 18:44:17 +0530
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 08:23:16 -0700
commit9043df532143a9eb751e2b095ae495ae8a5f054e (patch)
tree5e63e53d4718a7cdf5c8ed1c14ff63e09d00fbc7 /gallerycommon/src/com/android/gallery3d/exif
parent2f74516bcc7eb0f89f65260e90175b07513aed95 (diff)
downloadandroid_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.java2
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);
}