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

Predicate basicOrCustomNullGuard

Gets an expression that directly tests whether a given expression, e, is null or not.

If result evaluates to branch, then e is guaranteed to be null if isnull is true, and non-null if isnull is false.

Import path

Expr basicOrCustomNullGuard(Expr e, boolean branch, boolean isnull)