From 8bf940004ea95177ae43cb823d5105e99072d9ef Mon Sep 17 00:00:00 2001 From: afischerdev Date: Tue, 25 Feb 2025 10:39:17 +0100 Subject: [PATCH] protect for breaks on empty way descr. --- .../src/main/java/btools/router/KinematicPrePath.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brouter-core/src/main/java/btools/router/KinematicPrePath.java b/brouter-core/src/main/java/btools/router/KinematicPrePath.java index c5bdc45..165bf6f 100644 --- a/brouter-core/src/main/java/btools/router/KinematicPrePath.java +++ b/brouter-core/src/main/java/btools/router/KinematicPrePath.java @@ -15,7 +15,10 @@ final class KinematicPrePath extends OsmPrePath { protected void initPrePath(OsmPath origin, RoutingContext rc) { byte[] description = link.descriptionBitmap; - if (description == null) throw new IllegalArgumentException("null description for: " + link); + if (description == null) { + //throw new IllegalArgumentException("null description for: " + link); + description = (targetNode.descriptionBitmap != null ? targetNode.descriptionBitmap : new byte[] {0, 1, 0}); + } // extract the 3 positions of the first section int lon0 = origin.originLon;