mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
Bugfix: prevent crash when ending a recording (barometer present).
Fixes #1766.
This commit is contained in:
@@ -120,6 +120,10 @@ public final class SensorDataSet {
|
||||
return;
|
||||
}
|
||||
if (value instanceof AtmosphericPressure) {
|
||||
if (this.barometer == null) {
|
||||
//TODO Quick fix. This shouldn't happen, but it does. May be a race condition?
|
||||
return;
|
||||
}
|
||||
this.barometer.add((Raw<AtmosphericPressure>) data);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user