From 00d74d930e4ab6f4147f37e8412001fa162a117b Mon Sep 17 00:00:00 2001 From: afischerdev Date: Mon, 7 Jul 2025 12:32:53 +0200 Subject: [PATCH] protect null pointer --- .../src/main/java/btools/routingapp/BRouterView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java b/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java index 092aac3..dc1c0a1 100644 --- a/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java +++ b/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java @@ -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 profileParamsCollection = null; RoutingParamCollector routingParamCollector = new RoutingParamCollector();