Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
    • 2.0.2, 3.0.0 PDFBox
    • FontBox
    • None

    Description

      NPE happens in this code if the content is crap, because peekToken() can be null:

              // find /Private dict
              while (!lexer.peekToken().getText().equals("Private"))
              {
                  lexer.nextToken();
              }
      

      Attachments

        1. PDFBOX-3348-058289-p1.pdf
          17 kB
          Tilman Hausherr

        Activity

          Commit 1743407 from tilman in branch 'pdfbox/trunk'
          [ https://svn.apache.org/r1743407 ]

          PDFBOX-3348: avoid NPE

          jira-bot ASF subversion and git services added a comment - Commit 1743407 from tilman in branch 'pdfbox/trunk' [ https://svn.apache.org/r1743407 ] PDFBOX-3348 : avoid NPE

          Commit 1743408 from tilman in branch 'pdfbox/branches/2.0'
          [ https://svn.apache.org/r1743408 ]

          PDFBOX-3348: avoid NPE

          jira-bot ASF subversion and git services added a comment - Commit 1743408 from tilman in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1743408 ] PDFBOX-3348 : avoid NPE

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: