We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e739d9c commit 5aa2601Copy full SHA for 5aa2601
1 file changed
media/java/android/media/ExifInterface.java
@@ -1330,12 +1330,12 @@ private void removeAttribute(String tag) {
1330
* determine whether the image data format is JPEG or not.
1331
*/
1332
private void loadAttributes() throws IOException {
1333
+ // Initialize mAttributes.
1334
+ for (int i = 0; i < EXIF_TAGS.length; ++i) {
1335
+ mAttributes[i] = new HashMap();
1336
+ }
1337
try {
1338
InputStream in = new FileInputStream(mFilename);
- // Initialize mAttributes.
- for (int i = 0; i < EXIF_TAGS.length; ++i) {
- mAttributes[i] = new HashMap();
- }
1339
getJpegAttributes(in);
1340
} catch (IOException e) {
1341
// Ignore exceptions in order to keep the compatibility with the old versions of
0 commit comments