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

Null pointer exception in PDFASchemaType.getNamespaceURI()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.27, 3.0.0 PDFBox
    • 2.0.28, 3.0.0 PDFBox
    • XmpBox
    • None

    Description

      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)

      Attachments

        1. PDFBOX-5525-xmp.xml
          7 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            Siedlerchr Christoph
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: