protect for breaks on empty way descr.
This commit is contained in:
parent
bda582f4e3
commit
8bf940004e
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ final class KinematicPrePath extends OsmPrePath {
|
||||||
|
|
||||||
protected void initPrePath(OsmPath origin, RoutingContext rc) {
|
protected void initPrePath(OsmPath origin, RoutingContext rc) {
|
||||||
byte[] description = link.descriptionBitmap;
|
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
|
// extract the 3 positions of the first section
|
||||||
int lon0 = origin.originLon;
|
int lon0 = origin.originLon;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue