quick fix for npe
This commit is contained in:
parent
c8cbedce6a
commit
4bd2135d75
1 changed files with 2 additions and 2 deletions
|
@ -366,13 +366,13 @@ public class BinaryMapRouteReaderAdapter {
|
||||||
stopSign = id;
|
stopSign = id;
|
||||||
} else if (tags.equals("highway") && val.equals("give_way")){
|
} else if (tags.equals("highway") && val.equals("give_way")){
|
||||||
giveWaySign = id;
|
giveWaySign = id;
|
||||||
} else if (tags.equals("traffic_signals:direction")){
|
} else if (tags.equals("traffic_signals:direction") && val != null){
|
||||||
if (val.equals("forward")) {
|
if (val.equals("forward")) {
|
||||||
directionTrafficSignalsForward = id;
|
directionTrafficSignalsForward = id;
|
||||||
} else if (val.equals("backward")) {
|
} else if (val.equals("backward")) {
|
||||||
directionTrafficSignalsBackward = id;
|
directionTrafficSignalsBackward = id;
|
||||||
}
|
}
|
||||||
} else if (tags.equals("direction")) {
|
} else if (tags.equals("direction") && val != null) {
|
||||||
if (val.equals("forward")) {
|
if (val.equals("forward")) {
|
||||||
directionForward = id;
|
directionForward = id;
|
||||||
} else if (val.equals("backward")) {
|
} else if (val.equals("backward")) {
|
||||||
|
|
Loading…
Reference in a new issue