Fixed handling of null profile
This commit is contained in:
parent
fc1dd360b3
commit
d7cb84e693
|
@ -359,8 +359,8 @@ public class GraphData {
|
|||
for (long time = fromTime; time <= toTime; time += 5 * 60 * 1000L) {
|
||||
Profile profile = ProfileFunctions.getInstance().getProfile(time);
|
||||
double act = 0d;
|
||||
if (profile != null)
|
||||
total = iobCobCalculatorPlugin.calculateFromTreatmentsAndTempsSynchronized(time, profile);
|
||||
if (profile == null) continue;
|
||||
total = iobCobCalculatorPlugin.calculateFromTreatmentsAndTempsSynchronized(time, profile);
|
||||
act = total.activity;
|
||||
|
||||
if(time<=now)
|
||||
|
|
Loading…
Reference in a new issue