Ticket #303 (closed defect: fixed)
Null reference error when checking tracklogs
|Reported by:||Dawson||Owned by:||joerg|
Testing 2014 preview by re-scoring Corryong Cup 2013.
I opened the .fsdb file for the comp in FS Comp 2014 R1, and clicked on "Task 4" then selected all of the tracks (CTRL-A) and used the rigt-click context menu to select "Check Tracklog(s)"
A dialog is displayed saying "Object reference not set to an instance of an object."
The error happens on three of the tracks in the task.
Under debug, I identified that the exception is thrown on line 837 of UcTasks?.cs when started_ss is null.
The previous line of code sets started_ss from flight.StartOfSpeedSectionTime?, but for the affected tacks, FlightSys?.FsTaskFlight?.Flight StartOfSpeedsectionTime? property returns null. It does this when crossing[i] is null
if (i < this._crossings.Length && this._crossings[i] != null)
t = this._crossings[i].Time;