# Cannot access a property or method of a null object reference

**URL:** <https://forum.kirupa.com/t/cannot-access-a-property-or-method-of-a-null-object-reference/308902>\
**Category:** Uncategorized\
**Created:** [May 3, 2010, 2:11am UTC](https://forum.kirupa.com/t/cannot-access-a-property-or-method-of-a-null-object-reference/308902 "2010-05-03T02:11:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djg007](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@djg007](https://forum.kirupa.com/u/djg007)\
**Post date:** [May 3, 2010, 2:11am UTC](https://forum.kirupa.com/t/cannot-access-a-property-or-method-of-a-null-object-reference/308902/1 "2010-05-03T02:11:03Z")

</div>

I have a flash project that I’m working on, and I keep getting this error in the output window, yet everything seems to be fine:

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at Main/onOpen()  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at fl.containers::UILoader/passEvent()
