tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/298-getting-service-as-null-in-the-commandRobotlegs: Discussion 2011-05-11T08:42:04Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/66147572011-04-21T00:19:09Z2011-04-21T00:19:10Zgetting service as null in the command<div><p>Can you give more information about what is going on? If you are
using SwiftSuspenders (i.e., you didn't change what you were using
for the actual dependency injection component, or IInjector), then
if your Command is invoked an you've formatted your [Inject]
metadata properly and it has compiled properly, it should be
injecting or you'd be seeing a different error.</p>
<p>If you are using RL from Flash and/or you are not using the swc,
it is possible your Inject metadata is being lost at compile
time.</p></div>Amy Blankenshiptag:robotlegs.tenderapp.com,2009-10-18:Comment/66147572011-05-02T12:59:27Z2011-05-02T12:59:27Zgetting service as null in the command<div><p>If your [Inject] metadata is being kept, could it be that you're
trying to run the code in the constructor of the command instead of
in <code>execute()</code>?</p>
<p>The best tool for diagnosing this is the common problems
wiki:<br>
<a href=
"https://github.com/robotlegs/robotlegs-framework/wiki/common-problems">
https://github.com/robotlegs/robotlegs-framework/wiki/common-problems</a></p>
<p>Let us know if this doesn't fix it for you,</p>
<p>Stray</p></div>Stray