Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154093

[TIFF] NPE when reading LZW-compressed image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:

      Description

      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)

        Attachments

          Activity

            People

            Assignee:
            bpb Brian Burkhalter
            Reporter:
            avstepan Alexander Stepanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: