From c9ed3b8a5b97598621251b5cff4ebbd8939e9ae6 Mon Sep 17 00:00:00 2001 From: Sungsoo Date: Tue, 18 Oct 2016 10:06:01 +0900 Subject: [PATCH] ExifInterfaceTest: Catch IOException ExifInterface throws IOException instead of UnsupportedOperationException. Bug: 32221877 Change-Id: I68a4a62f565a386434b774759271bf6f2af2b7db --- .../com/android/mediaframeworktest/unit/ExifInterfaceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 db326ba6e2c20..012041ff13802 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 @@ public class ExifInterfaceTest extends AndroidTestCase { 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;