Merge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
36a20cdde3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user