Query module InconsistentCheckReturnNull

name
Inconsistent nullness check
description
The result value of a function is often checked for nullness, but not always. Since the value is mostly checked, it is likely that the function can return null values in some cases, and omitting the check could crash the program.
kind
problem
problem.severity
error
precision
medium
id
cpp/inconsistent-null-check
tags
reliability correctness statistical non-attributable external/cwe/cwe-476

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates