Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit c0672c4

Browse files
committed
Bugfix: crash if heart rate sensor was null (i.e., preference not initialized).
1 parent 4c6601f commit c0672c4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

fastlane/metadata/android/en-US/changelogs/3162.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Changes:
66
Bugfixes:
77
- Export via KMZ did not export picture filenames correctly
88
- Sharing multiple tracks did not include KMZ files
9-
- MarkerDetailActivity's UI was not shown
9+
- MarkerDetailActivity's UI was not shown
10+
- Settings crashed if preference of heart rate was not initialized

src/main/java/de/dennisguse/opentracks/settings/BluetoothLePreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void onCreate(Bundle savedInstanceState) {
147147

148148
BluetoothLePreference preference = (BluetoothLePreference) getPreference();
149149
String deviceSelected = preference.getValue();
150-
if (!deviceNone.equals(deviceSelected)) {
150+
if (deviceSelected != null && !deviceNone.equals(deviceSelected)) {
151151
listAdapter.add(preference.getValue(), preference.getValue());
152152
selectedEntryIndex = 1;
153153
}

0 commit comments

Comments
 (0)