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

Predicate guardSuggestsVarMaybeNull

guard is a guard expression that suggests that v might be null.

This is equivalent to guard = basicNullGuard(sameValue(v, _), _, true).

Import path

import semmle.code.java.dataflow.NullGuards
predicate guardSuggestsVarMaybeNull(Expr guard, SsaVariable v)