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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 3.0.0 PDFBox
    • AcroForm
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: