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

    XMLWordPrintableJSON

Details

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

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

            Dates

              Created:
              Updated:
              Resolved: