flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbyn Gerhardt (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34659) RichEditableText - textFlow allocation - null object reference
Date Tue, 09 Dec 2014 08:59:13 GMT

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

Robbyn Gerhardt updated FLEX-34659:
-----------------------------------
    Description: 
{code}
<fx:Script>
	protected function creationComplete(e:FlexEvent):void
    {
    	var plaintext:String	=	'<TextFlow whiteSpaceCollapse="preserve" version="3.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p><span>fsdfsd</span></p></TextFlow>';
        
        editor1.textFlow		=	TextFlowUtil.importFromString(plaintext);
        
        if(editor1.textFlow != null)
        {
        	editor2.textFlow		=	editor1.textFlow; //Here come error
        }
        else
        {
        	trace('Is empty');
        }
    }
</fx:Script>

<s:RichEditableText id="editor1" />
<s:RichEditableText id="editor2" />
{code}

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at flashx.textLayout.container::TextContainerManager/setText()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:583]
	at spark.components.supportClasses::RichEditableTextContainerManager/setText()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:346]
	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:763]
	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:772]
	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
	at spark.components::RichEditableText/get textFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/RichEditableText.as:2247]

  was:
{code}
<fx:Script>
	protected function creationComplete(e:FlexEvent):void
    {
    	var plaintext:String	=	'<TextFlow whiteSpaceCollapse="preserve" version="3.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p><span>fsdfsd</span></p></TextFlow>';
        
        editor1.textFlow		=	TextFlowUtil.importFromString(plaintext);
        
        if(editor1.textFlow != null)
        {
        	editor2.textFlow		=	editor1.textFlow; //Here come error
        }
        else
        {
        	trace('Is empty');
        }
    }
</fx:Script>

<s:RichEditableText id="editor1" />
<s:RichEditableText id="editor2" />
{/code}

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at flashx.textLayout.container::TextContainerManager/setText()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:583]
	at spark.components.supportClasses::RichEditableTextContainerManager/setText()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:346]
	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:763]
	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:772]
	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
	at spark.components::RichEditableText/get textFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/RichEditableText.as:2247]


> RichEditableText - textFlow allocation - null object reference
> --------------------------------------------------------------
>
>                 Key: FLEX-34659
>                 URL: https://issues.apache.org/jira/browse/FLEX-34659
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: RichEditableText
>    Affects Versions: Apache Flex 4.13.0
>         Environment: If I take the text flow from one RichEditableText and another RichEditableText
assigns comes the error
>            Reporter: Robbyn Gerhardt
>              Labels: RichEditableText, textflow
>             Fix For: Apache Flex 4.14.0
>
>
> {code}
> <fx:Script>
> 	protected function creationComplete(e:FlexEvent):void
>     {
>     	var plaintext:String	=	'<TextFlow whiteSpaceCollapse="preserve" version="3.0.0"
xmlns="http://ns.adobe.com/textLayout/2008"><p><span>fsdfsd</span></p></TextFlow>';
>         
>         editor1.textFlow		=	TextFlowUtil.importFromString(plaintext);
>         
>         if(editor1.textFlow != null)
>         {
>         	editor2.textFlow		=	editor1.textFlow; //Here come error
>         }
>         else
>         {
>         	trace('Is empty');
>         }
>     }
> </fx:Script>
> <s:RichEditableText id="editor1" />
> <s:RichEditableText id="editor2" />
> {code}
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at flashx.textLayout.container::TextContainerManager/setText()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:583]
> 	at spark.components.supportClasses::RichEditableTextContainerManager/setText()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:346]
> 	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:763]
> 	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
> 	at flashx.textLayout.container::TextContainerManager/setTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/container/TextContainerManager.as:772]
> 	at spark.components.supportClasses::RichEditableTextContainerManager/setTextFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:357]
> 	at spark.components::RichEditableText/get textFlow()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/RichEditableText.as:2247]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message