Petras created PDFBOX-3472:
------------------------------
Summary: NPE when PDF/A identificiation 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
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]