Guard against null states

This commit is contained in:
Janne Valkealahti
2015-03-14 16:17:28 +00:00
parent b9b270bf46
commit 3e5efefc33

View File

@@ -388,6 +388,9 @@ public abstract class AbstractStateMachine<S, E> extends LifecycleObjectSupport
}
State<S,E> source = transition.getSource();
if (source == null || currentState == null) {
continue;
}
if (!StateMachineUtils.containsAtleastOne(source.getIds(), currentState.getIds())) {
continue;
}