TMI-109: Fixed more possible NPEs because of missing SOF. Now throws IIOException immediately, if SOF is not found.

This commit is contained in:
Harald Kuhr
2015-03-07 12:00:52 +01:00
parent 37d4c03548
commit 5a0c596040
2 changed files with 24 additions and 7 deletions
@@ -411,6 +411,15 @@ public class JPEGImageReaderTest extends ImageReaderAbstractTestCase<JPEGImageRe
reader.dispose();
}
@Ignore("Known issue in com.sun...JPEGMetadata")
@Test
public void testExifStandardMetadataColorSpaceTypeYCbCr() {
// These reports RGB (by Exif non-presence?), while the data is really YCbCr
fail("/jpeg/exif-jpeg-thumbnail-sony-dsc-p150-inverted-colors.jpg");
fail("/jpeg/exif-pspro-13-inverted-colors.jpg");
fail("/jpeg/no-jfif-ycbcr.jpg");
}
@Test
public void testBrokenRead() throws IOException {
JPEGImageReader reader = createReader();