Restore null check in RuleyLinkCommunicationManager
This commit is contained in:
parent
c1fc6d4864
commit
4dc3440637
|
@ -413,7 +413,11 @@ public abstract class RileyLinkCommunicationManager {
|
|||
lastGoodReceiverCommunicationTime = System.currentTimeMillis();
|
||||
|
||||
sp.putLong(RileyLinkConst.Prefs.LastGoodDeviceCommunicationTime, lastGoodReceiverCommunicationTime);
|
||||
getPumpStatus().setLastCommunicationToNow();
|
||||
PumpStatus pumpStatus = getPumpStatus();
|
||||
|
||||
if(pumpStatus != null) {
|
||||
pumpStatus.setLastCommunicationToNow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue