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

Specifying labels on some series causes unrecoverable NPE.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.6 (Release)
    • None
    • Charts:PerItemLabel
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      1. Run the attached example.
      2. Notice this NPE:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.charts::BarChart/http://www.adobe.com/2006/flex/mx/internal::measureLabels()
      at mx.charts.series::BarSeries/updateTransform()
      at mx.charts.chartClasses::Series/validateTransform()
      at mx.charts.chartClasses::Series/updateDisplayList()
      at mx.charts.series::BarSeries/updateDisplayList()
      at mx.core::UIComponent/validateDisplayList()
      at mx.managers::LayoutManager/validateDisplayList()
      at mx.managers::LayoutManager/doPhasedInstantiation()
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()

      The crash goes away if I remove the labelPosition and labelFunction from the fourth and fifth series... but that I don't get labels on all my BarSeriesItems.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: