Skip to content

TIFFLZWDecompressor Null Pointer Exception #37

@reeperbahnause

Description

@reeperbahnause

Hi,

I stumbled across an issue while using ZXing try to read the attached TIFF file 00000_001.zip.

The following Exception occurs as soon as the image should be read:

Exception in thread "main" java.lang.NullPointerException
        at com.github.jaiimageio.impl.plugins.tiff.TIFFLZWDecompressor.addStringToTable(TIFFLZWDecompressor.java:246)
        at com.github.jaiimageio.impl.plugins.tiff.TIFFLZWDecompressor.decode(TIFFLZWDecompressor.java:183)
        at com.github.jaiimageio.impl.plugins.tiff.TIFFLZWDecompressor.decodeRaw(TIFFLZWDecompressor.java:131)
        at com.github.jaiimageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2583)
        at com.github.jaiimageio.impl.plugins.tiff.TIFFImageReader.decodeTile(TIFFImageReader.java:1144)
        at com.github.jaiimageio.impl.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1414)
        at javax.imageio.ImageIO.read(Unknown Source)
        at javax.imageio.ImageIO.read(Unknown Source)
        at com.google.zxing.client.j2se.ImageReader.readImage(ImageReader.java:44)
        at com.google.zxing.client.j2se.DecodeWorker.decode(DecodeWorker.java:120)
        at com.google.zxing.client.j2se.DecodeWorker.call(DecodeWorker.java:76)
        at com.google.zxing.client.j2se.CommandLineRunner.main(CommandLineRunner.java:98)

The command line I was testing is the following:

java -classpath .;jai-imageio-core-1.3.1.jar;jcommander-1.69.jar;javase-3.3.0.jar;core-3.3.1.jar com.google.zxing.client.j2se.CommandLineRunner file:////home/phillip/repository/Uploads/5916bdab80775/Optimized --possible_formats CODE_39 CODE_128 ITF --recursive --try_harder --multi

I just cloned the project to see if I can get any additional information about the exception but so far this is what I have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions