Rider Help

Code Inspection: Possible 'System.NullReferenceException'

Rider analyzes nullability of symbols and issues a warning if it detects access to members on objects that can be null references.

Note that nullability analysis is configurable, meaning that you can define in which situations Rider will assume values to be null references.

You can find detailed explanations of how Rider detects possible 'null' dereferences in Value and Nullability Analysis and Detect possible NullReferenceExceptions topics.

Last modified: 11 October 2017

See Also