Added null checking to activity stats

Position.getInfo().* might return null sometimes, so best check and avoid a numerical error.
This commit is contained in:
Philip Abbey
2024-08-25 13:07:23 +01:00
parent f2fb7f65a0
commit 64a9c5f274
2 changed files with 12 additions and 11 deletions

View File

@ -30,3 +30,4 @@
| 2.15 | Better support for templates by isolating erroneous returns and marking the menu item. |
| 2.16 | Bug fix for lack of phone connection when starting the application. Includes new activity reporting features from [KPWhiver](https://github.com/KPWhiver) covering steps, heart rate, floors climbed and descended, and respiration rate. |
| 2.17 | Bug fix for reporting activity metrics that are not found on some devices. |
| 2.18 | Bug fix for reporting activity metrics that might be `null` sometimes. This is unsimulatable situation, so this version is a change based on an informed guess. |