mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 03:55:47 +02:00
Garmin: Avoid NPE if parts of HRV data are missing
This commit is contained in:
parent
1d496b5ce5
commit
7514b50d19
@ -223,12 +223,13 @@ public class HRVStatusFragment extends AbstractChartFragment<HRVStatusFragment.H
|
||||
finalDay,
|
||||
finalCounter,
|
||||
sample.getTimestamp(),
|
||||
avgHRV, sample.getWeeklyAverage(),
|
||||
sample.getLastNightAverage(),
|
||||
sample.getLastNight5MinHigh(),
|
||||
sample.getBaselineBalancedLower(),
|
||||
sample.getBaselineBalancedUpper(),
|
||||
sample.getStatus()
|
||||
avgHRV,
|
||||
sample.getWeeklyAverage() != null ? sample.getWeeklyAverage() : 0,
|
||||
sample.getLastNightAverage() != null ? sample.getLastNightAverage() : 0,
|
||||
sample.getLastNight5MinHigh() != null ? sample.getLastNight5MinHigh() : 0,
|
||||
sample.getBaselineBalancedLower() != null ? sample.getBaselineBalancedLower() : 0,
|
||||
sample.getBaselineBalancedUpper() != null ? sample.getBaselineBalancedUpper() : 0,
|
||||
sample.getStatus() != null ? sample.getStatus() : HrvSummarySample.Status.NONE
|
||||
));
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user