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

Predicate nullGuardControls

Holds if there exists a null check on v that controls bb, such that in bb 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 nullGuardControls(SsaDefinition v, boolean isnull, BasicBlock bb)