tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/369-injector-is-missing-a-rule-to-handle-injection-into-targetRobotlegs: Discussion 2018-10-18T16:35:31Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/98528632011-09-09T12:43:16Z2011-09-09T12:43:17Z Injector is missing a rule to handle injection into target<div><p>solved by myself, I injected the frong type in the command I did
not used the Interface.<br>
That was the fault :)</p></div>foxtag:robotlegs.tenderapp.com,2009-10-18:Comment/98528632011-09-10T11:47:08Z2011-09-10T11:47:09Z Injector is missing a rule to handle injection into target<div><p>I am having a similar error trying to dispatch an event from a
service to be handled by the main views mediator: Error below, been
at it for 5 days now</p>
<p>TypeError: Error <a href="/discussions/problems/1009" title=
"Discussion #1009">#1009</a>: Cannot access a property or method of
a null object reference.</p>
<pre>
<code>at org.robotlegs.mvcs::Actor/dispatch()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Actor.as:97]</code>
</pre></div>Charlestag:robotlegs.tenderapp.com,2009-10-18:Comment/98528632011-09-12T23:11:08Z2011-09-12T23:11:08Z Injector is missing a rule to handle injection into target<div><p>Looking at that line in the framework source:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/blob/master/src/org/robotlegs/mvcs/Actor.as#L97">
https://github.com/robotlegs/robotlegs-framework/blob/master/src/or...</a></p>
<p>Either your event dispatcher is null (somewhat unlikely, unless
you're explicitly setting it to null somewhere), or the event
itself is null. Are you sure your service is trying to dispatch a
valid event.</p></div>Maciektag:robotlegs.tenderapp.com,2009-10-18:Comment/98528632011-09-13T12:39:01Z2011-09-13T12:39:04Z Injector is missing a rule to handle injection into target<div><p>Thanks Maciek. Wow, finally got it fixed, I was setting the
event to null unknowingly. A great relief as I was almost returning
to cairngorm.</p></div>Charles