I have a custom component that contains a List control. It
has a data provider that is an ArrayCollection from a web service.
When a user adds a new item to that list, I want to scroll to
the index of the added item & highlight it.
When I do this from my mxml file, I get
#1009: Cannot access a property or method of a null object
here is the code that throws the error: (navigator is id of
currJob.jobComponents = ArrayCollection(ev.result);
navigator.componentList = currJob.jobComponents; //data
provider for List Control being set with results of Web Service
currJob.jobComponents.length-1; //this is the code that generates