I don't think the stack traces help as they only relate to the error caused.
For example here is the trace for a DataGrid that uses a custom skin.
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
spark.components::GridColumnHeaderGroup/getHeaderRendererAt()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as:921]
at
spark.components::GridColumnHeaderGroup/dispatchGridEvent()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as:1266]
at
spark.components::GridColumnHeaderGroup/gchg_mouseDownDragUpHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as:1112]
at
Function/<anonymous>()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/utils/MouseEventUtil.as:104]
This is caused by clicking in the header row that should contain the header
data, but doesn't because after the dataProvider is filled, presumably the
skin can't update the display list.
If I delete the custom skin and just use the default skin, everything works
fine except it doesn't look the way I want it to.
This modified DataGridSkin looks like this - relevant part only -
<s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
alpha.disabled="0.5" minWidth="89" minHeight="84"
xmlns:main="com.booxotel.ibe.skins.main.*">
override protected function initializationComplete():void
{
useChromeColor = true;
super.initializationComplete();
}
/**
* @private
*/
override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
if (getStyle("borderVisible") == true)
{
border.visible = true;
background.left = background.top = background.right =
background.bottom = 1;
scroller.minViewportInset = 1;
}
else
{
border.visible = false;
background.left = background.top = background.right =
background.bottom = 0;
scroller.minViewportInset = 0;
}
borderStroke.color = getStyle("borderColor");
borderStroke.alpha = getStyle("borderAlpha");
super.updateDisplayList(unscaledWidth, unscaledHeight);
}
</s:SparkSkin>
Both of the calls to super have the warning message, the same as my other
skins.
In other skins things like [Inspectable] , defaultSortIndicator also have
the warning.
Doug
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Calls-to-superclass-failing-tp14230p14236.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.