RobotLegs, NoParamsConstructorInjectionPoint – простая ошибка

Когда появляется код этой ошибки – решение очень просто. Сообщение (Exception) выглядит примерно так:

TypeError: Error #1009: Не удается вызвать свойство или метод со ссылкой на объект “null”.
at ***.controller.commands::***Command()
at org.swiftsuspenders.injectionpoints::NoParamsConstructorInjectionPoint/applyInjection()
at org.swiftsuspenders::Injector/instantiate()
at org.robotlegs.base::CommandMap/routeEventToCommand()
at MethodInfo-108()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.mvcs::Mediator/dispatch()
at com.vkostin.pixiewars.view.mediators::PixieWarsMediator/onMouseClick()

Это происходит, потому что в классе команды не был перегружен (override) метод execute. Всё очень просто.

Comments are closed.