fix NPE
This commit is contained in:
parent
9d5d79dcec
commit
91fecb6cc7
2 changed files with 3 additions and 2 deletions
|
@ -493,7 +493,7 @@ public class NSClientPlugin extends PluginBase {
|
|||
.subscribe(
|
||||
result -> {
|
||||
result.getInserted().forEach(record -> uel.log("CAREPORTAL EVENT NS", record.getType().getText(), 0.0, 0.0, 0, 0));
|
||||
result.getInvalidated().forEach(record -> uel.log("CAREPORTAL EVENT DELETED FROM NS", record.getType().getText(), 0.0, 0.0, 0, 0));
|
||||
result.getInvalidated().forEach(record -> uel.log("CAREPORTAL EVENT DELETED FROM NS", "", 0.0, 0.0, record.getTimestamp(), 0));
|
||||
},
|
||||
error -> aapsLogger.error(LTag.DATABASE, "Error while saving therapy event", error)));
|
||||
} else {
|
||||
|
|
|
@ -124,6 +124,7 @@ public class AapsOmnipodErosManager {
|
|||
private boolean batteryChangeLoggingEnabled;
|
||||
|
||||
private final CompositeDisposable disposable = new CompositeDisposable();
|
||||
private boolean aBoolean;
|
||||
|
||||
@Inject
|
||||
public AapsOmnipodErosManager(OmnipodRileyLinkCommunicationManager communicationService,
|
||||
|
@ -719,7 +720,7 @@ public class AapsOmnipodErosManager {
|
|||
detailedBolusInfo.carbTime = 0;
|
||||
detailedBolusInfo.carbs = 0;
|
||||
}
|
||||
activePlugin.getActiveTreatments().addToHistoryTreatment(detailedBolusInfo, false);
|
||||
aBoolean;
|
||||
}
|
||||
|
||||
public synchronized void createSuspendedFakeTbrIfNotExists() {
|
||||
|
|
Loading…
Reference in a new issue