6 Replies Latest reply on Oct 18, 2011 1:59 PM by DilipShah

    Flex SDK version 4.5.1 upgrade issue

    DilipShah
      I recently upgraded from Flex SDK version 4.1.0.16076 to  4.5.1 and this upgrade broke one of the key functionalities in my  application.
      Wherever the s:DataGroup itemRenderer's  s:RichText textFlow has <img> element, it throws the following  error in debug Flash player:
      TypeError: Error #2007: Parameter child must be  non-null.
      at flash.display::DisplayObjectContainer/addChild()
      at  flashx.textLayout.factory::TextFlowTextLineFactory/callbackWithTextLines()[C:\Vellum\bran ches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLin eFactory.as:267]
      at  flashx.textLayout.factory::TextFlowTextLineFactory/createTextLinesInternal()[C:\Vellum\br anches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextL ineFactory.as:245]
      at  flashx.textLayout.factory::TextFlowTextLineFactory/createTextLines()[C:\Vellum\branches\v 2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLineFacto ry.as:104]
      at  spark.components::RichText/createTextLines()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\RichText.as:1296]
      at  spark.components::RichText/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\4.5.1\frameworks\pro jects\spark\src\spark\components\RichText.as:1173]
      at  spark.components.supportClasses::TextBase/measure()[E:\dev\4.5.1\frameworks\projects\spar k\src\spark\components\supportClasses\TextBase.as:534]
      at  mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]
      at  mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]
      at  mx.managers::LayoutManager/validateClient()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:987]
      at  mx.core::UIComponent/validateNow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core \UIComponent.as:8067]
      at  spark.components::DataGroup/initializeTypicalItem()[E:\dev\4.5.1\frameworks\projects\spar k\src\spark\components\DataGroup.as:297]
      at  spark.components::DataGroup/ensureTypicalLayoutElement()[E:\dev\4.5.1\frameworks\projects \spark\src\spark\components\DataGroup.as:352]
      at  spark.components::DataGroup/measure()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\co mponents\DataGroup.as:1354]
      at  mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]
      at  mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]
      at  mx.managers::LayoutManager/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:665]
      at  mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:816]
      at  mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]
      If I downgrade to 4.1.0.16076, the issue goes  away!
      Has anyone seen this issue? Any idea on how to fix  it? Please help!