DO NOT MERGE: Fix CTS regression

am: 90be39c7bb

Change-Id: Ie32ddd18c9342b36b8d989ab4d715b30ff608949
This commit is contained in:
Sungsoo Lim
2016-07-29 18:32:49 +00:00
committed by android-build-merger

View File

@@ -1330,12 +1330,12 @@ public class ExifInterface {
* determine whether the image data format is JPEG or not.
*/
private void loadAttributes() throws IOException {
// Initialize mAttributes.
for (int i = 0; i < EXIF_TAGS.length; ++i) {
mAttributes[i] = new HashMap();
}
try {
InputStream in = new FileInputStream(mFilename);
// Initialize mAttributes.
for (int i = 0; i < EXIF_TAGS.length; ++i) {
mAttributes[i] = new HashMap();
}
getJpegAttributes(in);
} catch (IOException e) {
// Ignore exceptions in order to keep the compatibility with the old versions of