-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b147
To reproduce please use the attached image and the test code from JDK-8154075.
Result (JDK9 b112, Win. 7):
Exception in thread "main" java.lang.NullPointerException
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.addStringToTable(java.desktop@9-ea/TIFFLZWDecompressor.java:214)
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decode(java.desktop@9-ea/TIFFLZWDecompressor.java:151)
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decodeRaw(java.desktop@9-ea/TIFFLZWDecompressor.java:102)
at com.sun.imageio.plugins.tiff.TIFFDecompressor.decode(java.desktop@9-ea/TIFFDecompressor.java:2484)
at com.sun.imageio.plugins.tiff.TIFFImageReader.decodeTile(java.desktop@9-ea/TIFFImageReader.java:1080)
at com.sun.imageio.plugins.tiff.TIFFImageReader.read(java.desktop@9-ea/TIFFImageReader.java:1283)
at javax.imageio.ImageReader.readAll(java.desktop@9-ea/ImageReader.java:1065)
at LoadImage.load(LoadImage.java:40)
at LoadImage.main(LoadImage.java:63)
Can open the image with:
- Windows Photo Viewer (Win. 7)
- GNOME image viewer 3.10 (Ubuntu 14.04)
- Preview 8.0 (OS X 10.10)
Result (JDK9 b112, Win. 7):
Exception in thread "main" java.lang.NullPointerException
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.addStringToTable(java.desktop@9-ea/TIFFLZWDecompressor.java:214)
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decode(java.desktop@9-ea/TIFFLZWDecompressor.java:151)
at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decodeRaw(java.desktop@9-ea/TIFFLZWDecompressor.java:102)
at com.sun.imageio.plugins.tiff.TIFFDecompressor.decode(java.desktop@9-ea/TIFFDecompressor.java:2484)
at com.sun.imageio.plugins.tiff.TIFFImageReader.decodeTile(java.desktop@9-ea/TIFFImageReader.java:1080)
at com.sun.imageio.plugins.tiff.TIFFImageReader.read(java.desktop@9-ea/TIFFImageReader.java:1283)
at javax.imageio.ImageReader.readAll(java.desktop@9-ea/ImageReader.java:1065)
at LoadImage.load(LoadImage.java:40)
at LoadImage.main(LoadImage.java:63)
Can open the image with:
- Windows Photo Viewer (Win. 7)
- GNOME image viewer 3.10 (Ubuntu 14.04)
- Preview 8.0 (OS X 10.10)