I have a project where data is called from a database as an
XMLListCollection and passed to another page. The second page
presents the data using a repeater creating buttons, binding the
XML data to various controls on the button. I can back up to the
first page and reload different data (in the same format), then
send the data back to the second page to be displayed.
I've noticed, tho, that if there is LESS items that the
repeater is showing the second time, the whole thing barfs with
this error message:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
If I send more items to be displayed the second time, there's
no problem. However, if there's less the second time, it crashes.
I suspect you are doing somethng odd with repeater. Lets see
You should be encapsulating your repeated ui and
functionality in a custom component, and repeating that. Doing it
that way will help expose flaws in your logic that might not be
apparent in declarative mxml.