From c07886f01ca3f7b8d4700657e8f7edbff929e46b Mon Sep 17 00:00:00 2001 From: PaulStets Date: Tue, 11 Sep 2018 11:04:52 +0300 Subject: [PATCH] Fixed #5984 --- 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 555b7456fc..e2ab650878 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -721,7 +721,7 @@ public class VoiceRouter { private void playAndArriveAtDestination(NextDirectionInfo info) { if (isTargetPoint(info)) { - String pointName = info == null ? "" : info.pointName; + String pointName = (info == null || info.pointName == null) ? "" : info.pointName; CommandBuilder play = getNewCommandPlayerToPlay(); if (play != null) { notifyOnVoiceMessage();