You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Nicklas Holmgren (JIRA)" <ji...@apache.org> on 2016/10/26 11:24:58 UTC

[jira] [Comment Edited] (FLEX-33838) TLF ContainerController.mouseDownHandler null object reference

    [ https://issues.apache.org/jira/browse/FLEX-33838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15608176#comment-15608176 ] 

Nicklas Holmgren edited comment on FLEX-33838 at 10/26/16 11:24 AM:
--------------------------------------------------------------------

I can confirm this bug exists in 4.6.0 and 4.5.1A aswell.
Here is the crash:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at flashx.textLayout.container::ContainerController/mouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2066]
	at flashx.textLayout.container::TextContainerManager/mouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1939]
	at spark.components.supportClasses::RichEditableTextContainerManager/mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\RichEditableTextContainerManager.as:666]
	at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::requiredMouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2088]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
	at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2918]


was (Author: elrinth):
I can confirm this bug exists in 4.6.0 and 4.5.1A aswell.

> 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.3.4#6332)