wanisramdani / tramway

Process-based simulation in Java/JavaFX à la MVC (more like MVP actually)
1 stars 0 forks source link

Iterating hashset returns NullPointerException #11

Closed wanisramdani closed 4 years ago

wanisramdani commented 4 years ago

The methods that raise this exception: playAll(), pauseAll() and resetAll()

How this error is triggered: Assuming our HashSet has 2 trams and 1 car, it will loop one more time searching for a third tram which won't be found

things.get("tram_" + i).pathTransition.play();