commit | c9ed3b8a5b97598621251b5cff4ebbd8939e9ae6 | [log] [tgz] |
---|---|---|
author | Sungsoo <sungsoo@google.com> | Tue Oct 18 10:06:01 2016 +0900 |
committer | Sungsoo <sungsoo@google.com> | Wed Oct 19 01:26:37 2016 +0900 |
tree | 95549d3897e8f07365292e94eda9b3a7a6f614ed | |
parent | 01e42cf67c8cfdda0fe1bc4f386910a0b62fbf41 [diff] |
ExifInterfaceTest: Catch IOException ExifInterface throws IOException instead of UnsupportedOperationException. Bug: 32221877 Change-Id: I68a4a62f565a386434b774759271bf6f2af2b7db
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ExifInterfaceTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ExifInterfaceTest.java index db326ba..012041f 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ExifInterfaceTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ExifInterfaceTest.java
@@ -416,7 +416,7 @@ in = getContext().getAssets().open(imageFile.getName()); ExifInterface exifInterface = new ExifInterface(in); exifInterface.saveAttributes(); - } catch (UnsupportedOperationException e) { + } catch (IOException e) { // Expected. saveAttributes is not supported with an ExifInterface object which was // created with InputStream. return;