Only problem I'm running into is that sometimes Print(value, PrintLevel) is being called during the initialization process. And Time[0] throws one of these:
Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
Not good. I'm trying to test for it like this:
String time = (Time == null || Time.Count == 0) ? "" : Time[0].ToString();
Not helping though - still getting that exception. Anyone know how to properly test for this? Obviously this doesn't come up often as usually nobody calls Time[0] before the bars are flowing.
Thanks in advance.
Comment