got some unexplain error with this code :
I am checking for null, but this is the tideData[1] which is crashing ! and in simulatror it works !
tideData = App.Storage.getValue("tide");
if (tideData!= null) {
var lastFetchTime = tideData[1];
//System.println("last fetch: " + lastFetchTime);
var _last = new Time.Moment(lastFetchTime);
---
Error: Array Out Of Bounds Error
Details: 'Failed invoking <symbol>'
Time: 2022-07-29T10:54:01Z
Part-Number: 006-B2700-00
Firmware-Version: '8.10'
Language-Code: fre
ConnectIQ-Version: 4.1.4
Store-Id: ab22a64d-dce7-4af7-b41e-8ada2098ead1
Store-Version: 1
Filename: 7F85BE64
Appname: Open Tide
Stack:
- pc: 0x10000c17
- pc: 0x10000060
what can I do ?