Re: [flexcoders] Getting NULL Object Reference while deleting last element of the list

2008-12-12 Thread Marco Catunda
Anuj, I think there is something wrong with this structure. Why make it into for loop? The _addToAssociatedDevicesArr is received the same value for(var i:*=0;i_addDevicesLen-1;i++) { _addToAssociatedDevicesArr=nvrsInPoolList.selectedItems; } The last

Re: [flexcoders] Getting NULL Object Reference while deleting last element of the list

2008-12-12 Thread anuj sharma
Hi Marco I fixed it in the first loop i need to get rid of -1 to finish the loop correctly, its been fixed now Thanks for your help Anuj On Fri, Dec 12, 2008 at 4:02 AM, Marco Catunda marco.catu...@gmail.comwrote: Anuj, I think there is something wrong with this structure. Why make it into

[flexcoders] Getting NULL Object Reference while deleting last element of the list

2008-12-11 Thread anuj181
Hi Guys I am trying to implement the delete entries of the list box. The code works fine till the last entry, when i am trying to delete the last item after selection it is throwing error TypeError: Error #1009: Cannot access a property or method of a null object reference. I have seen this error