diff --git a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java index f65a7b8..35682eb 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java @@ -46,8 +46,8 @@ public class MoveListStrategy implements MoveStrategy { break; } } - if (!(validLine || line == "")) { - throw new InvalidFileFormatException("The File contains invalid data! Please "); + if (!(validLine || line.equals(""))) { + throw new InvalidFileFormatException("The File contains invalid data!"); } } }