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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.8.7
    • Component/s: JempBox
    • Labels:
      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-Findbugs-possible-null-pointer-reference.txt
          0.9 kB
          Peter_Lenahan@ibi.com
        2. XMPSchema.java
          35 kB
          Peter_Lenahan@ibi.com

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: