flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35030) Null Pointer Exception in custom component's getStyle
Date Wed, 30 Mar 2016 01:38:25 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217207#comment-15217207
] 

Justin Mclean commented on FLEX-35030:
--------------------------------------

Any chance you could post some code to demonstrate this error?

> Null Pointer Exception in custom component's getStyle
> -----------------------------------------------------
>
>                 Key: FLEX-35030
>                 URL: https://issues.apache.org/jira/browse/FLEX-35030
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: Group
>    Affects Versions: Apache Flex 4.12.0
>         Environment: FLASHBUILDER 4.6
>            Reporter: mta
>
> I have 2 widgets in two separate packages. The two widgets are alike.
> They consist of BorderContainer, VGROUP, HGROUP and label.
> I throw teh first one, it ok. But when i throx he second one, i had a nul pointer exception.
> Stack trace is :
> 	at mx.core::UIComponent/getStyle()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:11660]
> 	at mx.core::UIComponent/getConstraintValue()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:9615]
> 	at mx.core::UIComponent/get horizontalCenter()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:9784]
> 	at spark.layouts::BasicLayout/measure()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/layouts/BasicLayout.as:261]
> 	at spark.components.supportClasses::GroupBase/measure()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as:1156]
> 	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:9038]
> 	at mx.core::UIComponent/validateSize()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:8962]
> 	at spark.components::Group/validateSize()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Group.as:1074]
> 	at mx.managers::LayoutManager/validateSize()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:673]
> 	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:800]
> 	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message