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
|
||||
if(Config.APS){
|
||||
//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 {
|
||||
//NSClient or remote
|
||||
openApsStatus = NSDeviceStatus.getOpenApsTimestamp();
|
||||
|
|
Loading…
Reference in a new issue