M
Marshall Belew
My stack trace contains:
System.NullReferenceException: Object reference not set to an instance
of an object.
but the line of code it refers to looks like this:
if (null == unit || ! unit.Enabled)
return;
Am I just missing something? The short-circuit evaluation of this
line should never allow the "! unit.Enabled" to be tested if "null ==
unit".
I've seen this fairly randomly. I can't reproduce it every time. I'm
willing to bet that it's a memory corruption somewhere.
Any tips on debugging this weirdness?
Marshall Belew
System.NullReferenceException: Object reference not set to an instance
of an object.
but the line of code it refers to looks like this:
if (null == unit || ! unit.Enabled)
return;
Am I just missing something? The short-circuit evaluation of this
line should never allow the "! unit.Enabled" to be tested if "null ==
unit".
I've seen this fairly randomly. I can't reproduce it every time. I'm
willing to bet that it's a memory corruption somewhere.
Any tips on debugging this weirdness?
Marshall Belew