Restore null check in RuleyLinkCommunicationManager

This commit is contained in:
Bart Sopers 2020-05-07 22:09:23 +02:00
parent c1fc6d4864
commit 4dc3440637

View file

@ -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();
}
}