flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chris_d_k ...@christiankiefer.de>
Subject NPE in ButtonSkin
Date Fri, 13 Nov 2015 16:36:58 GMT
Hi,

I have added a Standard Button (spark, no skin, ...)

in one of my component and get the following error. If I add the Button with
an time-offset (setTimout(addMyButton, 20)) it is working. Any ideas why?

[Fault] exception, information=TypeError: Error #1009: Cannot access a
property or method of a null object reference.
at
spark.skins::ActionScriptSkinBase/setElementSize()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/spark/src/spark/skins/ActionScriptSkinBase.as:600]
at
spark.skins.mobile::ButtonSkin/http://www.adobe.com/2006/flex/mx/internal::layoutBorder()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as:390]
at
spark.skins.mobile::ButtonSkin/layoutContents()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as:364]
at
spark.skins::ActionScriptSkinBase/updateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/spark/src/spark/skins/ActionScriptSkinBase.as:293]
at
mx.core::UIComponent/validateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:9531]
at
mx.managers::LayoutManager/validateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:744]
at
mx.managers::LayoutManager/doPhasedInstantiation()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:809]
at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

kind regards

Christian



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/NPE-in-ButtonSkin-tp11481.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message