fix NPE on reaching destination

This commit is contained in:
sonora 2016-05-20 13:29:22 +02:00
parent 4e45b72bef
commit b1139f2abb

View file

@ -708,7 +708,7 @@ public class VoiceRouter {
isplay = false;
}
// add turn after next
if (nextNextInfo != null) {
if ((nextNextInfo != null) && (nextNextInfo.directionInfo != null)) {
String t2Param = getTurnType(nextNextInfo.directionInfo.getTurnType());
if (t2Param != null) {
if(isplay) { play.then(); }