fix NPE on temp target sync
This commit is contained in:
parent
44c50804a8
commit
22881e17a2
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||||
.duration(trJson.getInt("duration"))
|
.duration(trJson.getInt("duration"))
|
||||||
.low(Profile.toMgdl(trJson.getDouble("targetBottom"), units))
|
.low(Profile.toMgdl(trJson.getDouble("targetBottom"), units))
|
||||||
.high(Profile.toMgdl(trJson.getDouble("targetTop"), units))
|
.high(Profile.toMgdl(trJson.getDouble("targetTop"), units))
|
||||||
.reason(trJson.getString("reason"))
|
.reason(JsonHelper.safeGetString(trJson, "reason", ""))
|
||||||
._id(trJson.getString("_id"))
|
._id(trJson.getString("_id"))
|
||||||
.source(Source.NIGHTSCOUT);
|
.source(Source.NIGHTSCOUT);
|
||||||
createOrUpdate(tempTarget);
|
createOrUpdate(tempTarget);
|
||||||
|
|
Loading…
Reference in a new issue