Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33838

TLF ContainerController.mouseDownHandler null object reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.10.0
    • None
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexmsp Alexander Scheibe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: