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

Commit 36a20cdd authored by Jaesung Chung's avatar Jaesung Chung Committed by Android (Google) Code Review
Browse files

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

parents d91859d2 1043f561
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();