fix 10789

This commit is contained in:
Kseniia 2021-02-12 10:18:47 +02:00
parent 7732c1e7b1
commit 1b03867e2c

View file

@ -658,7 +658,7 @@ public class BinaryRoutePlanner {
break;
}
}
if (rv == viaId && rt == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) {
if (rv == viaId && via && rt == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) {
type = MapRenderingTypes.RESTRICTION_NO_STRAIGHT_ON;
break;
}
@ -675,7 +675,7 @@ public class BinaryRoutePlanner {
}
}
if (rv == viaId && rt == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) {
if (rv == viaId && via && rt == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) {
type = MapRenderingTypes.RESTRICTION_NO_STRAIGHT_ON;
break;
}