Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA9D4F3BE for ; Mon, 2 Sep 2013 03:57:01 +0000 (UTC) Received: (qmail 80095 invoked by uid 500); 2 Sep 2013 03:56:56 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 80074 invoked by uid 500); 2 Sep 2013 03:56:54 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 80051 invoked by uid 99); 2 Sep 2013 03:56:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 03:56:51 +0000 Date: Mon, 2 Sep 2013 03:56:51 +0000 (UTC) From: "Alex Harui (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33052) Runtime error when using a chart in a module in an app that is also using charts 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-33052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13755891#comment-13755891 ] Alex Harui commented on FLEX-33052: ----------------------------------- Regarding changing the SDK code: it appears that using getMergedStyleDeclarations isn't the right answer because initStyles tries to set some new styles and a MergedCSSStyleDeclaration is read-only. > Runtime error when using a chart in a module in an app that is also using charts > -------------------------------------------------------------------------------- > > Key: FLEX-33052 > URL: https://issues.apache.org/jira/browse/FLEX-33052 > Project: Apache Flex > Issue Type: Bug > Components: Charts > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Alex Harui > Attachments: chartsNoMerge.css > > > This is a regression in 4.6. It doesn't matter if the modules are Spark or not. Works fine in 4.5.1 and below. > See attached FB project. > Steps to reproduce: > 1. Create an app that uses a chart and create a module that also uses a chart. > > Actual Results: > > TypeError: Error #1009: Cannot access a property or method of a null object reference. > at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBase.as:1862] > > Expected Results: > > No error and chart loads fine. > > Workaround (if any): > > Copy chart styles from module's parent styleManager into the module's own styleManager. -- 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