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(
|
.subscribe(
|
||||||
result -> {
|
result -> {
|
||||||
result.getInserted().forEach(record -> uel.log("CAREPORTAL EVENT NS", record.getType().getText(), 0.0, 0.0, 0, 0));
|
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)));
|
error -> aapsLogger.error(LTag.DATABASE, "Error while saving therapy event", error)));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -124,6 +124,7 @@ public class AapsOmnipodErosManager {
|
||||||
private boolean batteryChangeLoggingEnabled;
|
private boolean batteryChangeLoggingEnabled;
|
||||||
|
|
||||||
private final CompositeDisposable disposable = new CompositeDisposable();
|
private final CompositeDisposable disposable = new CompositeDisposable();
|
||||||
|
private boolean aBoolean;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public AapsOmnipodErosManager(OmnipodRileyLinkCommunicationManager communicationService,
|
public AapsOmnipodErosManager(OmnipodRileyLinkCommunicationManager communicationService,
|
||||||
|
@ -719,7 +720,7 @@ public class AapsOmnipodErosManager {
|
||||||
detailedBolusInfo.carbTime = 0;
|
detailedBolusInfo.carbTime = 0;
|
||||||
detailedBolusInfo.carbs = 0;
|
detailedBolusInfo.carbs = 0;
|
||||||
}
|
}
|
||||||
activePlugin.getActiveTreatments().addToHistoryTreatment(detailedBolusInfo, false);
|
aBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void createSuspendedFakeTbrIfNotExists() {
|
public synchronized void createSuspendedFakeTbrIfNotExists() {
|
||||||
|
|
Loading…
Reference in a new issue