Ticket Created

bug: SDK 8.0.0-Beta DF crashes in simulator when starting to play activity data simulation

class MyView extends WatchUi.DataField {
    var foo = 0;
    var bar;
    var heartRate;
  
    function initialize() {
        DataField.initialize();
        readSettings();
    }

    function readSettings() {
		foo = Application.Properties.getValue("foo"); // Numeric, default value 0
    }

    function compute(info as Activity.Info) {
        heartRate = foo <= 0 // exception on this line
			? info.currentHeartRate
			: bar != null
				? bar.average
				: null;
    }
} 

foo = 0 and bar = null all the time.

All works well after I start the DF in the simulator: in Simulation > Activity Data I can click start/pause/resume/stop.

However at the moment I click on play (with the random generated data, not a saved fit file) the above code crashes in the indicated line. Happens at least on fr965 and fr255.

Needless to say that the code works with SDK 7.4.3 both in simulator and on thousands of real devices.