EnumStateMachineFactory doesn't always check initial state
- Adding initial state check - Fixes #59
This commit is contained in:
@@ -295,7 +295,9 @@ public class EnumStateMachineFactory<S extends Enum<S>, E extends Enum<E>> exten
|
||||
state = stateMap.get(stateData.getState());
|
||||
if (state != null) {
|
||||
states.add(state);
|
||||
initialState = state;
|
||||
if (stateData.isInitial()) {
|
||||
initialState = state;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (stateMachine != null) {
|
||||
|
||||
Reference in New Issue
Block a user