That means that somewhere you are accessing a field, property or method on a reference-type variable that is null
(or accessing .Value
on Nullable<T>
struct). We can’t tell you where, but ex.StackTrace
can, as can adding a break-point and stepping through the code near where it errors, looking at the variables etc for the rogue null
(or the correct null
with a missing null
-check)