[ https://issues.apache.org/jira/browse/FLEX-33409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584066#comment-13584066 ]
Woodwing Developer commented on FLEX-33409: ------------------------------------------- Hi Carol. I made a simple application where the issue is always reproducible. Every time I start typing at the end of the text, the text area crashes internally and the lines get corrupt. Occasionally I get a crash that comes in the debugger. Here is the stack trace: --- START code --- TypeError: Error #1009: Cannot access a property or method of a null object reference. at flashx.textLayout.compose::FlowComposerBase/addLine()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/FlowComposerBase.as:471] at flashx.textLayout.compose::ComposeState/endLine()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/ComposeState.as:313] at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:970] at flashx.textLayout.compose::BaseCompose/composeParagraphElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:754] at flashx.textLayout.compose::ComposeState/composeParagraphElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/ComposeState.as:324] at flashx.textLayout.compose::BaseCompose/composeBlockElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:391] --- END code --- Note that this time I get a Null pointer reference error, but most of the time in my other project I get an "Invalid parameter" error. The result is always the same, the text lines are misplaced and editing is no longer possible. Hereunder you have the code for the test application that reproduces the problem as I mentioned. --- START code --- <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="onCreationComplete(event)" width="450" height="400"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; import spark.utils.TextFlowUtil; private const textFLowXML:XML = <TextFlow color="#000000" fontSize="12" lineHeight="14" paddingBottom="0" paddingLeft="10" paddingRight="10" paddingTop="0" whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008"> <p> <span backgroundColor="#ffffff" textDecoration="underline">First Span</span> <span backgroundColor="#ffffff" textDecoration="none"> Second span. This text has a hypen in the next long word LongWordWithAHyphen. Make sure the hypen is shown and there is a 3rd line! If you can see it, then start typing here -></span> </p> </TextFlow>; protected function onCreationComplete (event:FlexEvent):void { this.textArea.textFlow = TextFlowUtil.importFromXML(this.textFLowXML); } ]]> </fx:Script> <s:Panel width="100%" height="100%"> <s:TextArea width="100%" height="100%" id="textArea"/> </s:Panel> </s:WindowedApplication> --- END code--- > TLF crashes when hypens are shown in a multi span textFlow > ---------------------------------------------------------- > > Key: FLEX-33409 > URL: https://issues.apache.org/jira/browse/FLEX-33409 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: TLF editing > Reporter: Woodwing Developer > Priority: Blocker > Labels: TLF, crash, editing, hyphen, span, textflow > > When soft hyphens are used and shown, in a textFlow with 2 or more spans, TLF > crashes when typing. > Import the underlying text flow xml. Resize the text area until the hyphen is > visible. Then start typing AFTER the hypened word, also pressing the enter > key. TLF crashes. > Sample textFLow (if the soft hyphen is not show, insert a new one in the > appropriate word): > <TextFlow color="#000000" fontSize="12" lineHeight="14" paddingBottom="0" > paddingLeft="10" paddingRight="10" paddingTop="0" > whiteSpaceCollapse="preserve" version="2.0.0" > xmlns="http://ns.adobe.com/textLayout/2008"> > <p> > <span backgroundColor="#ffffff" textDecoration="underline">First > Span</span> > <span backgroundColor="#ffffff" textDecoration="none"> Second span. > This text has a hypen in the next long word LongWordWithAHyphen. Make sure > the hypen is shown! Then start typing and pressing enter till TLF crashes > (should happen fast enough)</span> > </p> > </TextFlow> > It seems that the textLine is damaged but the text engine fails to recompose > the line properly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira