[ 
https://issues.apache.org/jira/browse/PDFBOX-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433281#comment-15433281
 ] 

ASF subversion and git services commented on PDFBOX-3472:
---------------------------------------------------------

Commit 1757414 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1757414 ]

PDFBOX-3472: avoid NPE as proposed by Petras; improve javadoc

> 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: 1.8.12, 1.8.13, 2.0.2, 2.0.3, 2.1.0
>            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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to