From b1139f2abb2cf009f5018a91215b69c326c54697 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 20 May 2016 13:29:22 +0200 Subject: [PATCH] fix NPE on reaching destination --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index c9dea724f7..0245e86ee9 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -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(); }