If a variable is dereferenced, and the variable has a null value on all possible execution paths leading to the dereferencing, it is guaranteed to result in a NullReferenceException.

Examine the code to check for possible errors.