What is the complete stacktrace and what line does it map to?
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack OMelia Sent: Wednesday, October 31, 2007 1:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR bugginess Hello All, I hate to put such a non-descriptive title but I can't seem to come up a better title. I have converted a Flex 2 app into an AIR app, and a simple thing that worked before does not now. In the AIR app, opening a particular page throws a "Cannot access a property or method of a null object reference" that I hadn't received before. After much debugging, I traced it to a click event on a button that when called opens a popup window using the PopUpManager class. When I remove the click event, it works fine. This is the button: <mx:Button label="@Resource(key='InvoiceSummary', bundle='myResources_invoice')" click="reportPopup()"/> and this is the popup function: public function reportPopup():void { var pop:invoiceSummaryPopup = invoiceSummaryPopup(PopUpManager.createPopUp(Application.application.vie wstackMain, invoiceSummaryPopup, true)); pop.showCloseButton=true; PopUpManager.centerPopUp(pop); } I'm using runtime localization on this page that seems to work fine. I thought it might be complicating thngs and causing the problem but when I removed it I still get the error. Any thoughts? Thanks, Jack