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

Maurice Mullens commented on FLEX-33409:
----------------------------------------

just put the cursor behind the -> in the text and start pressing enter (maybe 
about 12 times?). Then the following error occurs:








TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
        at 
flashx.textLayout.elements::FlowLeafElement/http://ns.adobe.com/textLayout/internal/2008::getEffectiveLineHeight()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/elements/FlowLeafElement.as:577]
        at 
flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/textLayout/internal/2008::getLineLeading()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/compose/TextFlowLine.as:1199]
        at 
flashx.textLayout.compose::BaseCompose/calculateLeadingParameters()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:2240]
        at 
flashx.textLayout.compose::BaseCompose/finishComposeLine()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:2278]
        at 
flashx.textLayout.compose::BaseCompose/fitLineToParcel()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:2178]
        at 
flashx.textLayout.compose::ComposeState/composeNextLine()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/ComposeState.as:415]
        at 
flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:1307]
        at 
flashx.textLayout.compose::BaseCompose/composeParagraphElement()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:1197]
        at 
flashx.textLayout.compose::ComposeState/composeParagraphElement()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/ComposeState.as:324]
        at 
flashx.textLayout.compose::BaseCompose/composeBlockElement()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:453]
        at 
flashx.textLayout.compose::BaseCompose/composeInternal()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:1177]
        at 
flashx.textLayout.compose::ComposeState/composeInternal()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/ComposeState.as:151]
        at 
flashx.textLayout.compose::BaseCompose/composeTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/BaseCompose.as:955]
        at 
flashx.textLayout.compose::ComposeState/composeTextFlow()[/Users/aharui/git/flex/master/flex-tlf/textLayout/src/flashx/textLayout/compose/ComposeState.as:114]
        at 
flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/compose/StandardFlowComposer.as:684]
        at 
flashx.textLayout.compose::StandardFlowComposer/internalCompose()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/compose/StandardFlowComposer.as:768]
        at 
flashx.textLayout.compose::StandardFlowComposer/updateToController()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/compose/StandardFlowComposer.as:564]
        at 
flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/compose/StandardFlowComposer.as:525]
        at 
flashx.textLayout.edit::EditManager/updateAllControllers()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:820]
        at 
flashx.textLayout.edit::EditManager/handleUpdate()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:856]
        at 
flashx.textLayout.edit::EditManager/finalizeDo()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:676]
        at 
flashx.textLayout.edit::EditManager/doOperation()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:625]
        at 
flashx.textLayout.edit::EditManager/splitParagraph()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:1153]
        at 
flashx.textLayout.edit::EditManager/keyDownHandler()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/edit/EditManager.as:407]
        at 
flashx.textLayout.container::ContainerController/keyDownHandler()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/container/ContainerController.as:2529]
        at 
flashx.textLayout.container::TextContainerManager/keyDownHandler()[/Users/justinmclean/Documents/ApacheFlexTLFGit/textLayout/src/flashx/textLayout/container/TextContainerManager.as:1889]
        at 
spark.components.supportClasses::RichEditableTextContainerManager/keyDownHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:665]
                                          

                
> 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
>            Assignee: Alex Harui
>            Priority: Blocker
>              Labels: TLF, crash, editing, hyphen, span, textflow
>         Attachments: BaseCompose.as, ComposeState.as, FLEX33409.patch, 
> Test.fxp, textLayout.swc
>
>
> 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 LongWord­WithAHyphen. 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

Reply via email to