NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.42k stars 1.15k forks source link

Data table crash #3529

Closed Navid200 closed 5 months ago

Navid200 commented 5 months ago

Install xDrip (not over a previous install). Do not set up a hardware data source. Enable data tables.
Tap on data table. xDrip will crash.

It crashes when calling parseDataForStats. And what causes the crash is the for loop in that method.

I have extended the existing try and catch to also include the call to the parseDataForStats method.

The same test shows no crash anymore after this PR. It shows an empty data table.

Navid200 commented 5 months ago

The calibration data table does not crash when empty. Only the BG data table.

Navid200 commented 5 months ago

Tested with Android 9