Closed leeoades closed 1 year ago
For StateInfo, Substates, FixedTransitions and DynamicTransitions are only initialised by a call to AddRelationships.
However, for StateMachineInfo.InitialState, this never happens.
Therefore StateMachineInfo.InitialState.Transitions throws a System.ArgumentNullException.
The StateInfo object should not throw if "half initialised"
Thanks for your contribution, @leeoades!
I take it only a maintainer can merge the PR? @mclift
For StateInfo, Substates, FixedTransitions and DynamicTransitions are only initialised by a call to AddRelationships.
However, for StateMachineInfo.InitialState, this never happens.
Therefore StateMachineInfo.InitialState.Transitions throws a System.ArgumentNullException.
The StateInfo object should not throw if "half initialised"