[
https://issues.apache.org/jira/browse/PDFBOX-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Petras updated PDFBOX-3472:
---------------------------
Attachment: PDFBOX-3472_fixNPE.patch
Attached suggested patch which checks whether PDF/A Part ID information is
present and avoids NPE.
> NPE when PDF/A identification metadata does not contain ID
> ----------------------------------------------------------
>
> Key: PDFBOX-3472
> URL: https://issues.apache.org/jira/browse/PDFBOX-3472
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 2.0.2
> Reporter: Petras
> Attachments: PDFBOX-3472_fixNPE.patch
>
>
> If malformed PDF/A identification metadata without {{<pdfaid:part>}} element
> is present, Preflight PDFAIdentificationValidation throws NPE:
> {code:xml}
> java.lang.NullPointerException
> at
> org.apache.pdfbox.preflight.metadata.PDFAIdentificationValidation.validatePDFAIdentifer(PDFAIdentificationValidation.java:85)
> ...
> {code}
> PDFAIdentificationValidation.checkPartNumber() method should register an
> error instead.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]