When I start Ninja without a Connection, and try to access, for example
ChartControl.OwnerChart.ChartTrader
ChartControl.OwnerChart.ChartTrader.Account
in OnStateChange (DataLoaded thru Terminated)
I get an error
Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
these errors don't occur when I Connect at startup.
Question: How do I test when there is no active connection so that I know when to bypass this type of code?
Thx.

Comment