Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6114

Spotbugs violation in LocalJVMToolkit

XMLWordPrintable

    • JMC 7 Iter 11, JMC 7 Iter 10

      "vm is null guaranteed to be dereferenced in org.openjdk.jmc.browser.attach.LocalJVMToolkit$3.call() on exception path [org.openjdk.jmc.browser.attach.LocalJVMToolkit$3, org.openjdk.jmc.browser.attach.LocalJVMToolkit$3, org.openjdk.jmc.browser.attach.LocalJVMToolkit$3, org.openjdk.jmc.browser.attach.LocalJVMToolkit$3] Dereferenced at LocalJVMToolkit.java:[line 394]Dereferenced at LocalJVMToolkit.java:[line 394]Null value at LocalJVMToolkit.java:[line 362]Known null at LocalJVMToolkit.java:[line 366] NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH"

      Not quite sure why spotbugs insists that vm is guaranteed to be null at that point. May be a simple case of updating the exclude file.

            hirt Marcus Hirt
            hirt Marcus Hirt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: