VVO: fix NullPointerException in parseLine()

This commit is contained in:
Andreas Schildbach 2023-04-02 18:35:45 +02:00
parent 2d8a1a7e84
commit bb389a4e68

View file

@ -73,7 +73,7 @@ public class VvoProvider extends AbstractEfaProvider {
if ("RB 71".equals(symbol))
return new Line(id, network, Product.REGIONAL_TRAIN, "RB71");
if (P_C_LINE.matcher(symbol).matches())
if (symbol != null && P_C_LINE.matcher(symbol).matches())
return new Line(id, network, Product.TRAM, symbol);
if ("Fernbus".equals(trainName) && trainNum == null)