0 Replies Latest reply on Jun 15, 2012 7:00 AM by aciam70

    PopUpButton problem

    aciam70

      Hi

      I'm using flex 4.5.

       

      I added this part in my code:

       

      <s:HGroup id="HeaderBox" width="100%"  >

                  <mx:PopUpButton />

      </s:HGroup>

       

      When I try to open the popup button, I have this exception also if there isn't nothing in popUp property:

       

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

          at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\PopUpManagerImpl.as:433]

          at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\m anagers\PopUpManager.as:193]

          at mx.controls::PopUpButton/displayPopUp()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\contro ls\PopUpButton.as:899]

          at mx.controls::PopUpButton/openWithEvent()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\contr ols\PopUpButton.as:832]

          at mx.controls::PopUpButton/clickHandler()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\contro ls\PopUpButton.as:1203]

       

      Why have I this problem?

      Thanks

      A.