CodeQL library for Java/Kotlin
codeql/java-all 5.0.1-dev (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)