Acknowledged

crash on some devices accessing user profiler

Unhandled Exception:
GPSMAP® 67 / 67i: 4.80
Montana® 7 Series: 16.50

var s = USP.getProfile();

var WakeTime = s.wakeTime == null ? null : s.wakeTime.value() / 60;// crash

so probably s = null but doc doesn't mention about null or about any limitation to devices

getProfile() as UserProfile.Profile

Retrieve the current UserProfile.Profile object.

Example:

using Toybox.UserProfile;
var profile = UserProfile.getProfile();

Returns:

Since:

API Level 1.0.0

Parents
  • next crash

    var

    s = USP.getProfile();

    if(s)

    {

            var WakeTime = s.wakeTime == null ? null : s.wakeTime.value() / 60;//<<<<<<<<<<<<< crash, line 259

            ....

    }

    Error Name: Unhandled Exception
    Occurrences: 5
    First Occurrence: 2023-06-05
    Last Occurrence: 2023-06-05
    Devices:
        Montana® 7 Series: 16.50
    App Versions: 1.5.0
    Languages: deu

Comment
  • next crash

    var

    s = USP.getProfile();

    if(s)

    {

            var WakeTime = s.wakeTime == null ? null : s.wakeTime.value() / 60;//<<<<<<<<<<<<< crash, line 259

            ....

    }

    Error Name: Unhandled Exception
    Occurrences: 5
    First Occurrence: 2023-06-05
    Last Occurrence: 2023-06-05
    Devices:
        Montana® 7 Series: 16.50
    App Versions: 1.5.0
    Languages: deu

Children
No Data