Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F5F9DEC2 for ; Thu, 22 Nov 2012 11:23:00 +0000 (UTC) Received: (qmail 29250 invoked by uid 500); 22 Nov 2012 11:22:59 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 29213 invoked by uid 500); 22 Nov 2012 11:22:59 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 29188 invoked by uid 99); 22 Nov 2012 11:22:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 11:22:58 +0000 Date: Thu, 22 Nov 2012 11:22:58 +0000 (UTC) From: "Victor Sheyanov (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <586534484.16612.1353583378449.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (FLEX-26890) [TLF 2819924] Error #1009 in flashx.textLayout.container::ContainerController::updateGraphics() while setting vscrollbar to maximum MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-26890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502725#comment-13502725 ] Victor Sheyanov commented on FLEX-26890: ---------------------------------------- Hi guys! More than one year passed after the issues was reported. Recently I've found workaround for this issue. First, you need update you textflow by adding all new graphics elements. Than, before scrolling down, you need to updateAllControllers(); During this updateAllControllers, exception is thrown and you catch it. try { textFlow.flowComposer.updateAllControllers(); } catch(error:Error) { } chatText.verticalScrollPosition = chatText.contentHeight - chatText.height; Original issues comes from ContainerController.as, line 3178, updateGraphics method. During debugging I've sorted out, that for this line we come with floatIndex = 1. After that we do floatIndex--, and floatIndex is equals to 0, and after that we are trying to do floatInfo=_composedFloats[-1]; and of course we get floatInfo == null, and on the last line we do null.graphics and we get an exception. while (containerListIndex == -1 && floatIndex > 0) { floatIndex--; floatInfo = _composedFloats[floatIndex - 1]; containerListIndex = _floatsInContainer.indexOf(floatInfo.graphic); } > [TLF 2819924] Error #1009 in flashx.textLayout.container::ContainerController::updateGraphics() while setting vscrollbar to maximum > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: FLEX-26890 > URL: https://issues.apache.org/jira/browse/FLEX-26890 > Project: Apache Flex > Issue Type: Bug > Components: Spark: TextArea > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): Windows > Affected OS(s): Windows 7 > Browser: Internet Explorer 8.x > Language Found: English > Reporter: Adobe JIRA > Priority: Minor > > Steps to reproduce: > I found this issue while trying to do a test case for another issue. But the origin of the problem seems to be the same. > Actual Results: > While clicking on Tab 2 and on the button "Click me" several times, the application throws a TypeError : > TypeError: Error #1009: Cannot access a property or method of a null object reference. > at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateGraphics()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:3180] > at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:3078] > at flashx.textLayout.compose::StandardFlowComposer/updateCompositionShapes()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:616] > at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:559] > at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:517] > at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1343] > at spark.components::RichEditableText/updateDisplayList()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\RichEditableText.as:2886] > at mx.core::UIComponent/validateDisplayList()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8951] > at mx.managers::LayoutManager/validateDisplayList()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736] > at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819] > at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] > > Expected Results: > I expect the VScrollBar to be set at its maximum value when TextArea is updated. > > Workaround (if any): > Not found yet... > > At the beginning, I was trying to isolate this runtime TypeError : http://paste.balbinus.org/788 which is due to my updateVScroll() too. > Sorry if this test case is not perfect :x > Note : This bug doesn't happen in the Flex 4.1 SDK, I'm using the Flex 4.5.0.19786. -- 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