[
https://issues.apache.org/jira/browse/FLEX-34118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933070#comment-13933070
]
Maurice Amsellem edited comment on FLEX-34118 at 3/13/14 10:29 AM:
-------------------------------------------------------------------
Stack trace says error is in CartesinaChart line 922:
{code}
if (_horizontalAxisRenderer && _horizontalAxisRenderer is DualStyleObject)
{
DualStyleObject(_horizontalAxisRenderer).internalStyleName =
922: getStyle("horizontalAxisStyleNames")[0];
}
{code}
It's the [0] that is failing, so I guess "horizontalAxisStyleNames" is not an
array
was (Author: mamsellem):
_horizontalAxisRenderers and _verticalAxisRenderers are accessed in many places
in the class where it assumes it is not null.
Also, both are initialized are empty arrays:
{code}
line 567: private var _horizontalAxisRenderers:Array /* of AxisRenderer */
= [];
line 739: private var _verticalAxisRenderers:Array /* of AxisRenderer */ =
[];
{code}
they can't have been set to null values, becauses that would have caused RTE in
the setters.
So IMO, it's something else.
Anyway, we need an example
> CartesianChart null pointer
> ---------------------------
>
> Key: FLEX-34118
> URL: https://issues.apache.org/jira/browse/FLEX-34118
> Project: Apache Flex
> Issue Type: Bug
> Components: Charts
> Affects Versions: Apache Flex 4.11.0
> Reporter: Alexander Mazuruk
>
> TypeError: Error #1010: A term is undefined and has no properties.
> at
> mx.charts.chartClasses::CartesianChart/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as:922]
> at
> mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:8482]
> at
> mx.managers::LayoutManager/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
> at
> mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821]
> at
> mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
--
This message was sent by Atlassian JIRA
(v6.2#6252)