Buggy code:
@ XmlRootElement ( name = "GameSettings" ) public class GameSettings implements Serializable { private float seed = 0.0F ; private int [ ] hospitalCapacities = new int [ ] { 10 , 10 , 10 } ; private int stepsToHealth = 3 ; private int peoplePerAmbulance = 3 ; private int [ ] ambulanceCurrentLoad ; private int ambulanceLoadingSpeed = 1 ; private Graph graph ; private int fireSpeed = 5 ; private int gasStations = 0 ; private int simulationSteps = 100 ; protected Cell [ ] [ ] map ; protected Map < AgentType , List < Cell > > agentList ; protected Map < Cell , Integer > fireList ; protected String title = "Demo<seq2seq4repair_space>title" ; private Cell newFire ; private Map < String , Cell > collisionsList ; public float getSeed ( ) { } @ XmlElement ( required = true ) public void setSeed ( float seed ) { } public int [ ] getHospitalCapacities ( ) { } @ XmlElement ( required = true ) public void setHospitalCapacities ( int [ ] capacities ) { } public int getStepsToHealth ( ) { } @ XmlElement ( required = true ) public void setStepsToHealth ( int stepsToHealth ) { } public int getPeoplePerAmbulance ( ) { } @ XmlElement ( required = true ) public void setPeoplePerAmbulance ( int peoplePerAmbulance ) { } public int getAmbulanceLoadingSpeed ( ) { } @ XmlElement ( required = true ) public void setAmbulanceLoadingSpeed ( int ambulanceLoadingSpeed ) { } public int getFireSpeed ( ) { } @ XmlElement ( required = true ) public void setFireSpeed ( int fireSpeed ) { } public int getGasStations ( ) { } @ XmlElement ( required = true ) public void setGasStations ( int gasStations ) { } public int getSimulationSteps ( ) { } @ XmlElement ( required = true ) public void setSimulationSteps ( int simulationSteps ) { } public String getTitle ( ) { } @ XmlElement ( required = true ) public void setTitle ( String title ) { } @ XmlTransient public Cell [ ] [ ] getMap ( ) { } public Cell get ( int row , int col ) { } @ XmlTransient public Map < AgentType , List < Cell > > getAgentList ( ) { } public void setAgentList ( Map < AgentType , List < Cell > > agentList ) { } @ XmlTransient public Map < Cell , Integer > getFireList ( ) { } public void setFireList ( Map < Cell , Integer > fireList ) { } public String toString ( ) { } public String getShortString ( ) { } public void setNewFire ( Cell fireCell ) { } public Cell getNewFire ( ) { } public List < Cell > getBuildingsOnFire ( ) { } public List < Cell > getClearBuildings ( ) { } public static Boolean isBurned ( Cell c ) { } public void initializeAmbulanceCapacities ( ) { } public int getAmbulanceCurrentLoad ( int ambulance ) { } public void updateAmbulanceCurrentLoad ( int ambulance , int load ) { } public void updateGraph ( Graph graph ) { } public Graph getGraph ( ) { } public void advanceTurn ( ) { } public Boolean isEmptyStreet ( Cell street ) { } public void emptyColisions ( ) { } public List < String > getColisionsByCell ( Cell c ) { } public List < String > getColisionsByName ( String agentName ) { List < String > collisions = new ArrayList < > ( ) ; if ( this . collisionsList . containsKey ( agentName ) ) { Cell c = this . collisionsList . get ( agentName ) ; collisions = this . getColisionsByCell ( c ) ; for ( Iterator < String > iterator = collisions . iterator ( ) ; iterator . hasNext ( ) ; ) { String string = iterator . next ( ) ; <START_BUG> if ( string . isEmpty ( ) ) { <END_BUG> iterator . remove ( ) ; } } } return collisions ; } public void addColisions ( Map < String , Cell > colisions ) { } }

Fix:
if ( string . equals ( agentName ) ) {