We've received reports of an app crash on Montana 7xx (incidentally, using Russian language) when calling createSession:
try { session = ActivityRecording.createSession({:sport=>sport, :subSport=>subSport, :name=>name}); } catch(e) { sport = 0; subSport = 0; session = ActivityRecording.createSession({:sport=>sport, :subSport=>subSport, :name=>name}); }
The crash is occurring on what's listed here as line 2, and there are two concerns:
- Why is the crash occurring here?
- Should the error be handled by the try-catch?