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

NPE in PDAcroForm.flatten if a widget doesn't contain a /P entry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 3.0.0 PDFBox
    • Component/s: AcroForm
    • Labels:
      None

      Description

      A form filling issue was discussed on the users mailing list where one of the issues was that the widget annotations do not contain a /P entry.

      This led to an NPE:

      Exception in thread "main" java.lang.NullPointerException
      	at org.apache.pdfbox.pdmodel.PDPageContentStream.<init>(PDPageContentStream.java:195)
      

      As the /P entry is an optional entry the code would not opened on that entry.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msahyoun Maruan Sahyoun
                Reporter:
                msahyoun Maruan Sahyoun
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: