summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-10-19 20:08:13 +0800
committerEarl Ou <shunhsingou@google.com>2012-11-07 09:38:41 +0800
commitb7dbeb1619552baed1489d8a6417e4a40873130a (patch)
tree318001b64316c4903e37615bf4fa7feffbf8bf55 /tests/src
parent10b90006957aaecfeba413111d883d2937f03459 (diff)
downloadandroid_packages_apps_Snap-b7dbeb1619552baed1489d8a6417e4a40873130a.zip
android_packages_apps_Snap-b7dbeb1619552baed1489d8a6417e4a40873130a.tar.gz
android_packages_apps_Snap-b7dbeb1619552baed1489d8a6417e4a40873130a.tar.bz2
Handle tag not found in ExifParserTest
Change-Id: I892336ff3f73f91f5ac45ab9868f4ecfa61051ac
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/gallery3d/exif/ExifParserTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/src/com/android/gallery3d/exif/ExifParserTest.java b/tests/src/com/android/gallery3d/exif/ExifParserTest.java
index 422d127..ef6871b 100644
--- a/tests/src/com/android/gallery3d/exif/ExifParserTest.java
+++ b/tests/src/com/android/gallery3d/exif/ExifParserTest.java
@@ -149,6 +149,9 @@ public class ExifParserTest extends ExifXmlDataTestCase {
}
public void testOnlyReadSomeTag() throws Exception {
+ // Do not do this test if there is no model tag.
+ if (mGroundTruth.get(IfdId.TYPE_IFD_0).get(ExifTag.TAG_MODEL) == null) return;
+
try {
ExifParser parser = ExifParser.parse(getImageInputStream(), ExifParser.OPTION_IFD_0);
int event = parser.next();