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

NPE when PDF/A identification metadata does not contain ID

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.12, 1.8.13, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 1.8.13, 2.0.3, 3.0.0 PDFBox
    • Component/s: Preflight
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: