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

Null Pointer Exception when Annotation is missing the Subtype

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • PDModel
    • None

    Description

      If an annotation is missing the required Subtype then calling createAnnotation() will result in a NPE.
      A better result is to return null and let the upper level code handle it.

      Attachments

        1. PDAnnotation.java.patch
          0.8 kB
          Kevin Jackson

        Activity

          People

            lehmi Andreas Lehmkühler
            kevinjackson Kevin Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: