Commit a563c995 authored by Julian Zobel's avatar Julian Zobel
Browse files

Bugfix for empty current attraction points

parent f082de4d
......@@ -109,7 +109,7 @@ public class InAreaRoamingTransitionStrategy extends AbstractAttractionBasedTran
AttractionPoint currentAttractionPoint = this.assignments.get(comp);
// if the attraction point was removed in the meantime, go directly to transit state
if(!IAttractionGenerator.attractionPoints.contains(currentAttractionPoint)) {
if(currentAttractionPoint == null || !IAttractionGenerator.attractionPoints.contains(currentAttractionPoint)) {
this.addComponent(comp);
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment