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

XMPSchema.java:392 and XMPSchema.java:570 Possible null pointer dereference of bagElement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.8.7
    • JempBox
    • None

    Description

      Findbugs Scan of the code reports code paths which may result in a null pointer reference.

      C:/workspace/ibi_apps/src/org/apache/jempbox/xmp/XMPSchema.java:570 Possible null pointer dereference of bagElement
      C:/workspace/ibi_apps/src/org/apache/jempbox/xmp/XMPSchema.java:392 Possible null pointer dereference of bagElement

      The solution is to test for null before attempting to use the objects.

      A patch file is included

      Peter

      Attachments

        1. XMPSchema.java
          35 kB
          Peter_Lenahan@ibi.com
        2. XMPSchema-Findbugs-possible-null-pointer-reference.txt
          0.9 kB
          Peter_Lenahan@ibi.com

        Activity

          People

            lehmi Andreas Lehmkühler
            peter_lenahan@ibi.com Peter_Lenahan@ibi.com
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: