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

Commit a6351650 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

am: 6f9e5023

* commit '6f9e5023':
  ExifInterface: ignore exceptions when getting wrong images
parents 2d738af3 6f9e5023
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();