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

NPE when PDF/A identification metadata does not contain ID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.12, 1.8.13, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 1.8.13, 2.0.3, 3.0.0 PDFBox
    • Preflight
    • None

    Description

      If malformed PDF/A identification metadata without <pdfaid:part> element is present, Preflight PDFAIdentificationValidation throws NPE:

      java.lang.NullPointerException
      	at org.apache.pdfbox.preflight.metadata.PDFAIdentificationValidation.validatePDFAIdentifer(PDFAIdentificationValidation.java:85)
      ...
      

      PDFAIdentificationValidation.checkPartNumber() method should register an error instead.

      Attachments

        1. PDFBOX-3472_fixNPE.patch
          0.7 kB
          Petras

        Activity

          People

            tilman Tilman Hausherr
            abyss Petras
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: