oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.66k stars 290 forks source link

(fix) StickyHeaderTableView: crash on certain strings #1047

Closed refnil closed 3 months ago

refnil commented 3 months ago

This PR handle the case where some text ends by an \n (ex: 'something\n'). From String.split docs, trailing empty strings will be discarded.. That cause the exception since there are less element than expected in the resulting array.

From this screenshot, you can see the bug in action. Screenshot from 2024-05-08 07-44-44

Thanks for the app oliexdev :)

Fix #935

oliexdev commented 3 months ago

thx for the fix