Merge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev
am: 36a20cdde3
* commit '36a20cdde3176f24279e2382f878cecdbecafa9d':
ExifInterface: ignore exceptions when getting wrong images
This commit is contained in:
@@ -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