Failed to inject WidgetCanvas in WidgetCanvasMediator when WidgetModule gets loaded?

jpark's Avatar


25 Nov, 2009 08:15 PM

I see that view property in WidgetCanvasMediator upon onRegister call.

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

at org.robotlegs.demos.acmewidgetfactory.modules.widget.view::WidgetCanvasMediator/onRegister()
at org.robotlegs.base::MediatorBase/onCreationComplete()
at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\]
at mx.core::UIComponent/set initialized()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\]
  1. 1 Posted by jpark on 25 Nov, 2009 08:43 PM

    jpark's Avatar

    I see that view property in WidgetCanvasMediator is null upon onRegister call.

  2. Support Staff 2 Posted by Shaun Smith on 25 Nov, 2009 08:46 PM

    Shaun Smith's Avatar


    Could you post the part of the mediator where you have set the view component for injection?

  3. 3 Posted by jpark on 25 Nov, 2009 09:12 PM

    jpark's Avatar

    This happened from unmodified AcmeWiedgetFactory example.

    Take a look at WidgetCanvasMediator. Especially, when onRegister is called, view property is null.

    This also happened when I tried on live example.

    FYI, I am running debug version of Flash player 10.

  4. 4 Posted by jpark on 25 Nov, 2009 09:14 PM

    jpark's Avatar

    BTW, I love what you guys are doing. Thanks for the good work and Happy Thanksgiving.

  5. Support Staff 5 Posted by Shaun Smith on 25 Nov, 2009 09:15 PM

    Shaun Smith's Avatar

    Oh no! Thanks for pointing that out - I will look into it ASAP.

  6. 6 Posted by jpark on 04 Dec, 2009 02:08 PM

    jpark's Avatar

    I rebuilt AcmeWidgetFactory using Flex SDK 4 instead of 3.x. To my surprise, it didn't show the error! What does that tell you? BTW, it works well as AIR app.

  7. Support Staff 7 Posted by Shaun Smith on 07 Dec, 2009 03:46 PM

    Shaun Smith's Avatar

    Weird! I'm not sure what was causing the initial error. Besides, the AcmeWidgetFactory is a pretty old demo now, and could really do with a re-build.

  8. Shaun Smith closed this discussion on 07 Dec, 2009 03:46 PM.

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

Keyboard shortcuts


? 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