forked from upstream-mirrors/OpenTracks
afd1232940
The previous implementation was technically safe because the sensor never had null values. Now that it can, the calls to getHeartRate must be stored instead of repeated to avoid a race condition where the sensor data become null between the null-check and the second call