fixed a bug
This commit is contained in:
parent
0f856b1ec2
commit
2a5dbd9e72
@ -218,6 +218,10 @@ public class Controller {
|
|||||||
|
|
||||||
Station aktuelleStation = bearbeitet.getAktuelleStation();
|
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;
|
int i = 0;
|
||||||
for (Station station1 : cache.getStationen()) {
|
for (Station station1 : cache.getStationen()) {
|
||||||
if (station1.equals(station)) {
|
if (station1.equals(station)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user