Skip to content

Commit e6832a1

Browse files
committed
Snapshot.java, line 393 (Null Dereference) - Fortify
1 parent 6b23a64 commit e6832a1

File tree

1 file changed

+1
-1
lines changed
  • visualvm/libs.profiler/profiler.oql/src/org/graalvm/visualvm/lib/profiler/oql/engine/api/impl

1 file changed

+1
-1
lines changed

visualvm/libs.profiler/profiler.oql/src/org/graalvm/visualvm/lib/profiler/oql/engine/api/impl/Snapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public State(ReferenceChain path, Iterator<Instance> iterator) {
389389
State s1 = stack.poll();
390390
if (s1 == null) break;
391391
s1.hits.addAndGet(s.hits.get());
392-
if (s.hits.get() == 0L) {
392+
if (s.hits.get() == 0L && path != null) {
393393
ignored.add(path.getObj());
394394
}
395395
s = s1;

0 commit comments

Comments
 (0)