Skip to content

Commit

Permalink
Bugfix: crash if heart rate sensor was null (i.e., preference not ini…
Browse files Browse the repository at this point in the history
…tialized).
  • Loading branch information
dennisguse committed Nov 29, 2019
1 parent 4c6601f commit c0672c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fastlane/metadata/android/en-US/changelogs/3162.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ Changes:
Bugfixes:
- Export via KMZ did not export picture filenames correctly
- Sharing multiple tracks did not include KMZ files
- MarkerDetailActivity's UI was not shown
- MarkerDetailActivity's UI was not shown
- Settings crashed if preference of heart rate was not initialized
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void onCreate(Bundle savedInstanceState) {

BluetoothLePreference preference = (BluetoothLePreference) getPreference();
String deviceSelected = preference.getValue();
if (!deviceNone.equals(deviceSelected)) {
if (deviceSelected != null && !deviceNone.equals(deviceSelected)) {
listAdapter.add(preference.getValue(), preference.getValue());
selectedEntryIndex = 1;
}
Expand Down

0 comments on commit c0672c4

Please sign in to comment.