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

Runtime error when using a chart in a module in an app that is also using charts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Component/s: Charts
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      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.

        Attachments

        1. chartsNoMerge.css
          3 kB
          Alex Harui

          Issue Links

            Activity

              People

              • Assignee:
                aharui Alex Harui
                Reporter:
                adobejira Adobe JIRA
              • Votes:
                8 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: