I've just released a new watchface, and I'm getting some reports of a crash on the Fenix 5X (and possibly the same on D2 Charlie).
I've had one log file to look at so far, and the error is an unhandled exception with message: Key does not exist in Application Properties
It happens on the first line of this function:
using Application.Properties as applicationProperties; function clearExportImportStrings() { applicationProperties.setValue("EP", ""); applicationProperties.setValue("EF", ""); applicationProperties.setValue("EG", ""); }
The trouble is it works fine in the simulator and on other real watches, so I'm wondering if there is something different about the Fenix 5X which is causing this exception?
All 3 of those properties are defined in my properties.xml file as strings. Could it be because they are initialised as empty strings that that is causing it?
<property id="EP" type="string"></property> <!-- export import profile --> <property id="EF" type="string"></property> <!-- export import fields 1-3 --> <property id="EG" type="string"></property> <!-- export import fields 4-6 -->