diff --git a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java index 6537a5b18a..55b444ccf1 100644 --- a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java @@ -144,8 +144,10 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { i.putExtra("messageType", PEBBLE_ALERT); i.putExtra("sender", "OsmAnd"); i.putExtra("notificationData", notificationData); - ctx.sendBroadcast(i); - log.info("Send message to pebble " + bld.toString()); + if (cxt != null) { + ctx.sendBroadcast(i); + log.info("Send message to pebble " + bld.toString()); + } }