CodeQL library for Java/Kotlin
codeql/java-all 7.8.5-dev (changelog, source)
Search

Predicate nullGuardControlsBranchEdge

Holds if there exists a null check on v, such that taking the branch edge from bb1 to bb2 implies that v is guaranteed to be null if isnull is true, and non-null if isnull is false.

Import path

import semmle.code.java.dataflow.NullGuards
predicate nullGuardControlsBranchEdge(SsaDefinition v, boolean isnull, BasicBlock bb1, BasicBlock bb2)