Description
The mouseDown handler of the flashx.textLayout.container.ContainerController may cause a null object reference error
(here the code with original comments)
public function mouseDownHandler(event:MouseEvent):void { if (interactionManager && !event.isDefaultPrevented()) { interactionManager.mouseDownHandler(event); // grab the focus - alternative is to listen to keyevents on the Application // is this necessary? if (interactionManager.hasSelection()) setFocus(); } }
The error occurs in the line interactionManager.hasSelection() because interactionManager.mouseDownHandler(event) may cause the textFlow to become null and therefore the interactionManager can be null in that line.