fixed a bug

This commit is contained in:
Michael 2019-04-13 21:18:20 +02:00
parent 0f856b1ec2
commit 2a5dbd9e72

View File

@ -218,6 +218,10 @@ public class Controller {
Station aktuelleStation = bearbeitet.getAktuelleStation();
if(!cache.getStationen().contains(station)) {
return ResponseEntity.status(400).body("The scanned station isnt a part of the cache");
}
int i = 0;
for (Station station1 : cache.getStationen()) {
if (station1.equals(station)) {