Inspectopedia Help

Null Dereference

Reports dereferences of the pointers that may contain nullptr.

Example:

using namespace std; void process(string *a, string b) { if (a != nullptr || a->length()) { a = &b; } }

Inspection Details

Available in:

AppCode 2023.3, CLion 2023.3

Plugin:

CLion, 2023.3

Last modified: 13 July 2023