Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-21925

[TLF 2482280] set lineThrough/underline style on an empty text receives runtime error: Error #1034: Type Coercion failed: cannot convert 0 to flashx.textLayout.compose.TextFlowLine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: FTETextField
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. compile and run test
      2.
      3.

      Actual Results:

      receive runtime error:

      tyles_lineThrough Failed TypeError: Error #1034: Type Coercion failed: cannot co
      nvert 0 to flashx.textLayout.compose.TextFlowLine.
      [java] at flashx.textLayout.elements::FlowLeafElement/http://ns.adobe.c
      om/textLayout/internal/2008::getSpanBoundsOnLine()[C:\Vellum\dev\output\openSour
      ce\textLayout\src\flashx\textLayout\elements\FlowLeafElement.as:500]
      [java] at flashx.textLayout.elements::FlowLeafElement/http://ns.adobe.c
      om/textLayout/internal/2008::updateAdornments()[C:\Vellum\dev\output\openSource\
      textLayout\src\flashx\textLayout\elements\FlowLeafElement.as:625]
      [java] at flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/t
      extLayout/internal/2008::createAdornments()[C:\Vellum\dev\output\openSource\text
      Layout\src\flashx\textLayout\compose\TextFlowLine.as:759]
      [java] at flashx.textLayout.compose::TextFlowLine/getTextLine()[C:\Vell
      um\dev\output\openSource\textLayout\src\flashx\textLayout\compose\TextFlowLine.a
      s:666]
      [java] at flashx.textLayout.compose::BaseCompose/composeParagraphElemen
      tIntoLines()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\co
      mpose\BaseCompose.as:339]
      [java] at flashx.textLayout.compose::SimpleCompose/composeParagraphElem
      ent()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\S
      impleCompose.as:165]
      [java] at flashx.textLayout.compose::BaseCompose/composeBlockElement()[
      C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCom
      pose.as:210]
      [java] at flashx.textLayout.compose::BaseCompose/composeInternal()[C:\V
      ellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose
      .as:312]
      [java] at flashx.textLayout.compose::BaseCompose/composeTextFlow()[C:\V
      ellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose
      .as:279]
      [java] at flashx.textLayout.compose::SimpleCompose/composeTextFlow()[C:
      \Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\SimpleCom
      pose.as:113]
      [java] at FactoryDisplayComposer/http://ns.adobe.com/textLayout/interna
      l/2008::callTheComposer()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\
      textLayout\factory\TextLineFactoryBase.as:422]
      [java] at flashx.textLayout.compose::StandardFlowComposer/internalCompo
      se()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\St
      andardFlowComposer.as:751]
      [java] at flashx.textLayout.compose::StandardFlowComposer/compose()[C:\
      Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFl
      owComposer.as:814]
      [java] at flashx.textLayout.factory::StringTextLineFactory/createTextLi
      nesInternal()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\f
      actory\StringTextLineFactory.as:269]
      [java] at flashx.textLayout.factory::StringTextLineFactory/createTextLi
      nes()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\factory\S
      tringTextLineFactory.as:236]
      [java] at flashx.textLayout.container::TextContainerManager/compose()[C
      :\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextCo
      ntainerManager.as:1206]
      [java] at flashx.textLayout.container::TextContainerManager/updateConta
      iner()[C:\Vellum\dev\output\openSource\textLayout\src\flashx\textLayout\containe
      r\TextContainerManager.as:1249]
      [java] at spark.components::RichEditableText/updateDisplayList()[E:\dev
      \trunk\frameworks\projects\spark\src\spark\components\RichEditableText.as:2623]
      [java] at mx.core::UIComponent/validateDisplayList()[E:\dev\trunk\frame
      works\projects\framework\src\mx\core\UIComponent.as:8284]
      [java] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk
      \frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
      [java] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\tru
      nk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
      [java] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:
      \dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1076]

      Expected Results:

      no such error
      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: