flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33838) TLF ContainerController.mouseDownHandler null object reference
Date Sun, 02 Mar 2014 23:57:20 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Mclean updated FLEX-33838:
---------------------------------

    Labels: easytest tlf  (was: tlf)

> TLF ContainerController.mouseDownHandler null object reference
> --------------------------------------------------------------
>
>                 Key: FLEX-33838
>                 URL: https://issues.apache.org/jira/browse/FLEX-33838
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Alexander Scheibe
>              Labels: easytest, tlf
>
> The mouseDown handler of the flashx.textLayout.container.ContainerController may cause
a null object reference error
> (here the code with original comments)
> {code}
> 		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();
> 			}
> 		}
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message