null injector in command

Abilash's Avatar

Abilash

08 Apr, 2011 05:53 AM

Hi All,

I am new to robotlegs. I started exploring with the demo examples given by robotlegs. When I tried to run FlashGoogleMaps example, it gives following runtime error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.demos.flashgooglemaps.control.commands::PrepModelCommand/execute()
at org.robotlegs.base::CommandMap/execute()
at org.robotlegs.base::CommandMap/routeEventToCommand()
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext/startup()
at org.robotlegs.mvcs::Context/checkAutoStartup()
at org.robotlegs.mvcs::Context()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext()
at FlashGoogleMaps()

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.demos.flashgooglemaps.control.commands::PrepViewCommand/execute()
at org.robotlegs.base::CommandMap/execute()
at org.robotlegs.base::CommandMap/routeEventToCommand()
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext/startup()
at org.robotlegs.mvcs::Context/checkAutoStartup()
at org.robotlegs.mvcs::Context()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext()
at FlashGoogleMaps()

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.demos.flashgooglemaps.control.commands::PrepControllerCommand/execute()
at org.robotlegs.base::CommandMap/execute()
at org.robotlegs.base::CommandMap/routeEventToCommand()
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext/startup()
at org.robotlegs.mvcs::Context/checkAutoStartup()
at org.robotlegs.mvcs::Context()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext()
at FlashGoogleMaps()

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at org.robotlegs.demos.flashgooglemaps.control.commands::StartupCommand/execute()
at org.robotlegs.base::CommandMap/execute()
at org.robotlegs.base::CommandMap/routeEventToCommand()
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext/startup()
at org.robotlegs.mvcs::Context/checkAutoStartup()
at org.robotlegs.mvcs::Context()
at org.robotlegs.demos.flashgooglemaps::FlashGoogleMapsContext()
at FlashGoogleMaps()

When I browsed through the code, this is because contextView, commandMap, injector, mediatorMap are null in org.robotlegs.mvcs.Command class. Can anybody help me how to resolve this. Also, if anybody has a working small application developed on robotlegs, please give the link so that I can download and understand the concepts.

Thanks,
Abilash

  1. 1 Posted by Stray on 08 Apr, 2011 07:35 AM

    Stray's Avatar

    Hi Abilash, your [Inject] metadata isn't being included.

    This common problems resource will help you find out what's going wrong (most likely that you haven't ticked 'export as swc' in your flash publish settings, or that you're trying to build from source and not the swc):

    https://github.com/robotlegs/robotlegs-framework/wiki/common-problems

    Thanks,

    Stray

  2. Stray closed this discussion on 28 Apr, 2011 02:43 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac