Skip to main content
Participant
October 4, 2012
Question

Null Error in PopUpManagerImpl.as when removing a display object

  • October 4, 2012
  • 1 reply
  • 4729 views

Hi all,

We are in the middle of migration a flex 3.5 application to flex 4.6 with flash builder 4.5.

I have done basics and managed the get the application loading. However, when I try to remove a popup I get the following error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at mx.managers::PopUpManagerImpl/handleAccessibilityForNestedPopups()

    at mx.managers::PopUpManagerImpl/removeModalPopUpAccessibility()

    at mx.managers::PopUpManagerImpl/popupRemovedHandler()

    at flash.display::DisplayObjectContainer/removeChild()

    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_removeChild()

    at mx.managers::SystemManager/removeChild()

    at mx.managers::PopUpManagerImpl/removePopUp()

    at mx.managers::PopUpManager$/removePopUp()

..................

 

underneathPopUpData.owner.accessibilityProperties.silent = false;

in PopUpManagerImpl.as:1533 and PopUpManagerImpl.as:1519

where accessibilityProperties is null

I have looked over the web to any similar threads to no avail.

Am I missing something?

thank you very much

This topic has been closed for replies.

1 reply

Participant
January 21, 2013

I have exact same problem/error, but only happens on IE10 / Windows 8, and it's happening in others pc with same OS & browser.
I believe is about the browser, as same code has been working since 2 years without issues at <IE9 and currently works at all other browsers running on windows 8, but not sure what's going on, as I'm  having other problems with same file running on IE10 & W8 on other pcs, I been digging for information with no clue at all.

sre98Author
Participant
January 21, 2013

Hi wormie76,

I though I was alone on this.I nearly gave up migration, until I found a solution that worked for me.

I am using IE9 on win 7.

because it looked somthing to do with accessibility, we looked at compiler options and

selected 'Generate accessible SWF file' for all flex projects and libraries in flash builder.

this fixed the issue for us

hope this helps

Inspiring
October 14, 2013

YES!!!!!   FINALLY!!!!!

I've been looking for WEEKS for this solution!!!   It was driving me CRAZY!!

Why would my program run fine on some computers and terribly on others...  The newer machines always had the problems, and the older ones never had any problems.  THANK YOU SO MUCH FOR FIGURING THIS OUT!!  I'm SO happy!!!  Yay!!!!!!

Simply checking "Generate Accessible SWF" on the Flex Compiler page of the Options screen fixed everything.  Whew!!!

*weight of the world lifted off my shoulders*