True npe fix

This commit is contained in:
Alexey Kulish 2016-07-06 10:02:06 +03:00
parent 120b68b035
commit a41c99d591

View file

@ -144,10 +144,10 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
i.putExtra("messageType", PEBBLE_ALERT);
i.putExtra("sender", "OsmAnd");
i.putExtra("notificationData", notificationData);
if (cxt != null) {
ctx.sendBroadcast(i);
log.info("Send message to pebble " + bld.toString());
}
if (ctx != null) {
ctx.sendBroadcast(i);
log.info("Send message to pebble " + bld.toString());
}
}