protected from null

This commit is contained in:
afischerdev 2025-03-23 17:30:27 +01:00
parent ac429bc0e7
commit 79d41dc58b

View File

@ -46,7 +46,7 @@ public class BRouterWorker {
RoutingContext rc = new RoutingContext(); RoutingContext rc = new RoutingContext();
rc.rawTrackPath = rawTrackPath; rc.rawTrackPath = rawTrackPath;
rc.rawAreaPath = rawTrackPath.substring(0, rawTrackPath.lastIndexOf(File.separator)+1) + "rawAreaInfo.dat"; rc.rawAreaPath = (rawTrackPath != null ? rawTrackPath.substring(0, rawTrackPath.lastIndexOf(File.separator)+1) + "rawAreaInfo.dat" : null);
rc.localFunction = profilePath; rc.localFunction = profilePath;
RoutingParamCollector routingParamCollector = new RoutingParamCollector(); RoutingParamCollector routingParamCollector = new RoutingParamCollector();