JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Code inspection: Possible 'System.NullReferenceException'

Last modified: 11 February 2024

JetBrains 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 JetBrains Rider will assume values to be null references.

You can find detailed explanations of how JetBrains Rider detects possible 'null' dereferences in the Value and nullability analysis topic.