Re: How is this possible?
Would you please use code tags and post the code here.
What is PlotModel? Do you have more than one thread running?
A personal preference of mine is that when checking an object for not noting is to use IsNot.
Code:
If Obj IsNot Nothing Then
End If
Re: How is this possible?
The "default" for reference types is Nothing. So FirstOrDefault() returns either the first object that matches its predicate or Nothing. You usually follow it with a check against Nothing, because if you know for sure there is a result you use First() instead.
(There's also an overload that lets you specify a non-null default, but I can't tell if you called it because I can't scroll a screenshot.)