Potential nil dereference

Last modified: 03 December 2024

Reports instances where pointers that might be nil are dereferenced.

Example:

In the provided example, person is a pointer to a Person struct, but it is nil as it is not assigned any value. Attempting to dereference person to access Name without checking if person is nil results in a runtime error.