You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2026/01/15 11:29:00 UTC

[jira] [Created] (PDFBOX-6147) NPE in JBIG2Page.getWidth()

Tilman Hausherr created PDFBOX-6147:
---------------------------------------

             Summary: NPE in JBIG2Page.getWidth()
                 Key: PDFBOX-6147
                 URL: https://issues.apache.org/jira/browse/PDFBOX-6147
             Project: PDFBox
          Issue Type: Bug
          Components: JBIG2
    Affects Versions: 3.0.4 JBIG2
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 3.0.5 JBIG2
         Attachments: GHOSTSCRIPT-696453-0.jb2

{noformat}
NullPointerException: Cannot invoke "org.apache.pdfbox.jbig2.JBIG2Page.getWidth()" because the return value of "org.apache.pdfbox.jbig2.JBIG2Document.getPage(int)" is null
	at org.apache.pdfbox.jbig2.JBIG2ImageReader.getWidth(JBIG2ImageReader.java:110)
	at org.apache.tika.parser.image.ImageParser.extractMetadata(ImageParser.java:182)
	at org.apache.tika.parser.image.AbstractImageParser.parse(AbstractImageParser.java:78)
{noformat}
The first page number in this broken file is 48.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org