You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/13 15:30:00 UTC

[jira] [Commented] (PDFBOX-5525) Null pointer exception in PDFASchemaType.getNamespaceURI()

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

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

Commit 1904566 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1904566 ]

PDFBOX-5525: avoid NPE

> Null pointer exception in PDFASchemaType.getNamespaceURI()
> ----------------------------------------------------------
>
>                 Key: PDFBOX-5525
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5525
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 2.0.27, 3.0.0 PDFBox
>            Reporter: Christoph
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.28, 3.0.0 PDFBox
>
>
> Importing the following PDF given an NPE:
> This was originally reported to JabRef's repo, where we use version 3.0.0-RC1 
> [https://www.dropbox.com/s/0vtyhir0303pbuy/oe-30-4-5916.pdf?dl=0] 
> {{ERROR: Error importing: java.lang.NullPointerException: Cannot invoke "String.trim()" because the return value of "org.apache.xmpbox.type.PDFASchemaType.getNamespaceURI()" is null}}
> {{    at xmpbox@3.0.0-RC1/org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFASchemaType(PdfaExtensionHelper.java:126)}}
> {{    at xmpbox@3.0.0-RC1/org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:116)}}
> {{    at xmpbox@3.0.0-RC1/org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:197)}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org