#154 NPE in org.pdfbox.util.PDFStreamEngine:303

closed-out-of-date
5
2010-04-07
2005-02-02
No

In build 0.7.0 when attempting to extract text from the
attached PDF, I get a NullPointerException on line 303
of org.pdfbox.util.PDFStreamEngine

The line assumes that the variable c is not null, while
it is.
I don't know the details of the code there, but adding
an additional check for c's nullness causes the NPE not
to happen and text is extracted correctly as far as I
can tell.

Let me know any more information is required.

(We ran into this PDF by accident. I think it is
related to the JPEG 2000 standard)

Discussion

  • Ben Litchfield

    Ben Litchfield - 2005-02-02

    Logged In: YES
    user_id=601708

    The PDF did not get attached, make sure you check
    the "upload file" checkbox.

    If it is not working then please email me the PDF.

    ben@csh.rit.edu

     
  • Andrew Scherpbier

    Logged In: YES
    user_id=32816

    Argh! The file I attempted to attach is bigger then what SF
    allows.
    I'll email it to you.

     
  • Ben Litchfield

    Ben Litchfield - 2005-02-05

    Logged In: YES
    user_id=601708

    See PDF "japanese NPE.pdf"

    Ben

     
  • Ben Litchfield

    Ben Litchfield - 2010-04-07

    PDFBox has moved to Apache. Bugs have been moved over to the Apache bug tracking system. If you don't see the bug and it's still not fixed in the current release then please create a new bug on the Apache site.

    http://pdfbox.apache.org

     
  • Ben Litchfield

    Ben Litchfield - 2010-04-07
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks