fix NPE
This commit is contained in:
parent
c83f966d92
commit
2f235385e0
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ public class WatchUpdaterService extends WearableListenerService implements
|
||||||
//OpenAPS status
|
//OpenAPS status
|
||||||
if(Config.APS){
|
if(Config.APS){
|
||||||
//we are AndroidAPS
|
//we are AndroidAPS
|
||||||
openApsStatus = LoopPlugin.lastRun.lastEnact != null && LoopPlugin.lastRun.lastEnact.getTime() != 0 ? LoopPlugin.lastRun.lastEnact.getTime(): -1;
|
openApsStatus = LoopPlugin.lastRun != null && LoopPlugin.lastRun.lastEnact != null && LoopPlugin.lastRun.lastEnact.getTime() != 0 ? LoopPlugin.lastRun.lastEnact.getTime(): -1;
|
||||||
} else {
|
} else {
|
||||||
//NSClient or remote
|
//NSClient or remote
|
||||||
openApsStatus = NSDeviceStatus.getOpenApsTimestamp();
|
openApsStatus = NSDeviceStatus.getOpenApsTimestamp();
|
||||||
|
|
Loading…
Reference in a new issue