mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
Continue reading the metadata if invalid tags were found
This commit is contained in:
+8
@@ -276,4 +276,12 @@ public class EXIFReaderTest extends MetadataReaderAbstractTest {
|
||||
assertNotNull(interop);
|
||||
assertEquals(0, interop.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testReadExifWithEmptyTag() throws IOException {
|
||||
ImageInputStream stream = ImageIO.createImageInputStream(getResource("/exif/emptyexiftag.tif"));
|
||||
CompoundDirectory directory = (CompoundDirectory) createReader().read(stream);
|
||||
assertEquals(3, directory.directoryCount());
|
||||
stream.close();
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user