KVV: fix NullPointerException in parseLine()

This commit is contained in:
Andreas Schildbach 2023-04-02 18:40:36 +02:00
parent bb389a4e68
commit 47473c8aa5

View file

@ -55,7 +55,7 @@ public class KvvProvider extends AbstractEfaProvider {
if ("0".equals(mot)) {
if (trainName != null && trainName.startsWith("TRILEX"))
return new Line(id, network, Product.REGIONAL_TRAIN, trainName);
if (trainNum.equals("IRE 1"))
if ("IRE 1".equals(trainNum))
return new Line(id, network, Product.REGIONAL_TRAIN, "IRE1");
}