Blank track segments cause exception on statistics generation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GPX Viewer |
Fix Released
|
Medium
|
Andrew Gee |
Bug Description
If a GPX trace has an empty trkseg tag <trkseg></trkseg>, the application will fail to fully import the gpx trace file, and will throw an exception:
Traceback (most recent call last):
File "/usr/local/
self.
File "/usr/local/
distance = trace.get_
File "/usr/local/
return self._get_
File "/usr/local/
self.
File "/usr/local/
seconds += (pointp['time'] - segment[
TypeError: 'NoneType' object is unsubscriptable
Fix completed by not importing blank trksegs into the gpx trace object.