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

This commit is contained in:
Jaesung Chung
2016-03-15 23:27:12 +00:00
committed by Android (Google) Code Review

View File

@@ -824,7 +824,13 @@ public class ExifInterface {
}
// Process JPEG input stream
getJpegAttributes(in);
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();