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

NullPointerException in XMPMetadata.getSchema()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.29, 3.0.0 PDFBox, 4.0.0
    • 2.0.30, 3.0.1 PDFBox, 4.0.0
    • XmpBox
    • None

    Description

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.xmpbox.XMPMetadata.getSchema(XMPMetadata.java:264)
      at PDFBOX5649XMPProblem.main(PDFBOX5649XMPProblem.java:58)

      This happens with the attached file when calling

      metadata.getSchema("fx", "urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#");

      and was reported by Sylvere Babin from the users mailing list, see
      https://lists.apache.org/list?users@pdfbox.apache.org:2023-7
      which contains further text about a possible cause.

      Attachments

        1. pdfExemple.pdf
          257 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: