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