Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f9e5023 authored by Jaesung Chung's avatar Jaesung Chung Committed by android-build-merger
Browse files

Merge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev

am: 36a20cdd

* commit '36a20cdd':
  ExifInterface: ignore exceptions when getting wrong images
parents f12a22cd 36a20cdd
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -824,7 +824,13 @@ public class ExifInterface {
        }

        // Process JPEG input stream
        try {
            getJpegAttributes(in);
        } catch (IOException e) {
            // Ignore exceptions in order to keep the compatibility with the old versions of
            // ExifInterface.
            Log.w(TAG, "Invalid JPEG", e);
        }

        if (DEBUG) {
            printAttributes();