This commit is contained in:
Milos Kozak 2018-08-03 21:13:19 +02:00
parent d2f8cfa6c2
commit 294253797c

View file

@ -331,6 +331,8 @@ public class GraphData {
}
private double getNearestBg(long date) {
if (bgReadingsArray == null)
return Profile.fromMgdlToUnits(100, units);
for (int r = 0; r < bgReadingsArray.size(); r++) {
BgReading reading = bgReadingsArray.get(r);
if (reading.date > date) continue;