Debug through it.  What Is null?  Is it styleManager?  I don’t quite see how 
that would be possible.  Are there any special compiler/linker options in play?


On 6/11/10 11:04 PM, "[email protected]" 
<[email protected]> wrote:






TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at 
mx.core::UIComponent/getStyle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:10372]
    at 
spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:588]
    at 
spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
    at 
spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
    at 
spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:821]
    at 
mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
    at 
spark.components::Application/initialize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Application.as:916]
    at examples::loadingapp/initialize()
    at 
mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
    at 
mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:341]
    at 
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2810]
    at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2637]
    at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2539]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at 
mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:515]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

FYI My other applications are using a custom preloader but this one, brand new, 
isn't.

On Sat, Jun 12, 2010 at 12:51 AM, Alex Harui <[email protected]> wrote:





It is not finding the applicationskin.  The CSS is not configured properly.  I 
assume you set the new app to be the default app when building and running it?

It looks like the stack trace you posted is truncated.  What does the rest of 
it look like?



On 6/11/10 6:27 PM, "[email protected] 
<http://[email protected]> " <[email protected] 
<http://[email protected]> > wrote:






I mean I added it to the default package.
/mainapp.mxml
/testapp.mxml

On Fri, Jun 11, 2010 at 8:10 PM, Alex Harui <[email protected] 
<http://[email protected]> > wrote:





Not sure what you mean by “add a new app”.  App’s aren’t normally added. They 
are the top level tag in a document.


On 6/11/10 5:22 PM, "[email protected] 
<http://[email protected]>  
<http://[email protected]> " <[email protected] 
<http://[email protected]>  
<http://[email protected]> > wrote:




   [Attachment(s) <#TopText> from dorkie dork from dorktown included below]


I can create a new project with a blank application and it works fine
but in my existing project if i add a new application i get an error
when i run it??? What could be causing this?

I'm attaching an image of this error:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at 
mx.core::UIComponent/getStyle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:10372]
at 
spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:588]
at 
spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
at 
spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
at 
spark.components::SkinnableContainer/createChildren()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:821]
at 
mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at 
spark.components::Application/initialize()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Application.as:916]
at scratchpad/initialize()

JP





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to