NPE fix
This commit is contained in:
parent
36a8d14014
commit
08878ef30e
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue