Error on calling 'OnBarUpdate' method on bar xxxx: Object reference not set to an instance of an object. And the bar reference changes every time I hit refresh script.
foreach (DrawingTool draw in DrawObjects.ToList() )
{
This works fine, and I can see the DrawnBy property.
But if I change the if-clause to this, it fails:
if (draw.DrawnBy.ToString().Equals("MyIndicator" ))
What am I missing?

Comment