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

NPE when setting the field value in an AcroForm and the NormalAppearance entry exists but is COSNull

    Details

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

      Description

      When the NormalAppearance entry exists in a PDAnnotationWidget but the entry is COSNull and NPE is raised similar to

      Exception in thread "main" java.lang.NullPointerException at
      org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:137) 
      

      See PDFBOX-3723 for a sample.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: