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