protect null pointer

This commit is contained in:
afischerdev 2025-07-07 12:32:53 +02:00
parent ac7ddddb62
commit 00d74d930e

View file

@ -499,7 +499,7 @@ public class BRouterView extends View {
rc.localFunction = profilePath;
rc.turnInstructionMode = cor.getTurnInstructionMode();
if (params != null || params.length() > 2) {
if (params != null && params.length() > 2) {
try {
Map<String, String> profileParamsCollection = null;
RoutingParamCollector routingParamCollector = new RoutingParamCollector();