Merge pull request #666 from nightscout/revert-665-dev
Revert "NullPointerException while processing Bolus entries"
This commit is contained in:
commit
2cbfad42fe
1 changed files with 2 additions and 2 deletions
|
@ -473,7 +473,7 @@ class MedtronicHistoryData @Inject constructor(
|
||||||
for (bolus in entryList) {
|
for (bolus in entryList) {
|
||||||
|
|
||||||
val bolusDTO = bolus.decodedData["Object"] as BolusDTO
|
val bolusDTO = bolus.decodedData["Object"] as BolusDTO
|
||||||
var type: DetailedBolusInfo.BolusType? = DetailedBolusInfo.BolusType.NORMAL
|
var type: DetailedBolusInfo.BolusType = DetailedBolusInfo.BolusType.NORMAL
|
||||||
var multiwave = false
|
var multiwave = false
|
||||||
|
|
||||||
if (bolusDTO.bolusType == PumpBolusType.Extended) {
|
if (bolusDTO.bolusType == PumpBolusType.Extended) {
|
||||||
|
@ -500,7 +500,7 @@ class MedtronicHistoryData @Inject constructor(
|
||||||
temporaryId = entryWithTempId.temporaryId
|
temporaryId = entryWithTempId.temporaryId
|
||||||
pumpSyncStorage.removeBolusWithTemporaryId(temporaryId)
|
pumpSyncStorage.removeBolusWithTemporaryId(temporaryId)
|
||||||
boluses.remove(entryWithTempId)
|
boluses.remove(entryWithTempId)
|
||||||
type = entryWithTempId.bolusData?.bolusType
|
type = entryWithTempId.bolusData!!.bolusType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue