Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-737

Fix potential NullPointer exception in PDPageNode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0-incubator, 1.0.0, 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: Parsing
    • Labels:
      None
    • Environment:
      Windows Vista 32-bit, Java 1.5, HEAD tag of PDFBox

      Description

      getAllKids(List result, COSDictionary page, boolean recurse) throws a NullPointerException when page.getDictionaryObject( COSName.KIDS ) returns null. I have a PDF where this actually happens but I can not provide it due to the confidential information it contains. I confirmed that once I added the null check that the code worked as expected (the documents I was merging were visible, the page count was correct, etc.). Patch will be attached momentarily.

        Attachments

        1. PDFBOX-737.patch
          0.7 kB
          Adam Nichols

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adamnichols Adam Nichols
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: