Module Nullness
Provides predicates for performing nullness analyses.
Nullness analyses are used to identify places in a program where
a null
pointer exception (NullReferenceException
) may be thrown.
Example:
void M(string s) {
if (s != null) {
...
}
...
var i = s.IndexOf('a'); // s may be null
...
}
Import path
import semmle.code.csharp.dataflow.Nullness
Imports
csharp | The default C# QL library. |
Classes
AlwaysNullExpr | An expression that is always |
Dereference | An expression that dereferences a value. That is, an expression that may result in a |
MaybeNullExpr | An expression that may be |
NonNullExpr | An expression that is never |
PathNode | An SSA definition, which may be |
Modules
PathGraph | Provides the query predicates needed to include a graph in a path-problem query for |