The following line of code sometimes throws an exception:
var stopScheduleItems:Array = [];
The exception being thrown:
TypeError: Error #1010: A term is undefined and has no properties.
I cannot understand why this could happen when creating a new array. Could anyone provide some insight. Thanks