Intent action is working, but produces exception

Hi all,

I stole ideas from struts2 plugin and created intent action.  It is fired where appropriate, but I notice exception on console:

java.lang.NullPointerException
     at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getDescription(IntentionActionMetaData.java:124)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerSettings.b(IntentionManagerSettings.java:163)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerSettings.registerMetaData(IntentionManagerSettings.java:154)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerSettings.registerIntentionMetaData(IntentionManagerSettings.java:75)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerImpl.registerIntentionAndMetaData(IntentionManagerImpl.java:140)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerImpl.registerIntentionAndMetaData(IntentionManagerImpl.java:117)
     at com.intellij.codeInsight.intention.impl.config.IntentionManagerImpl$2.run(IntentionManagerImpl.java:94)
     at com.intellij.util.Alarm$Request$1.run(Alarm.java:289)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:722)



I provided inherited from PsiElementBaseIntentionAction ,  and  overriden getText() and getFamilyName().  I also used caegory:       

        <intentionAction>
            <className>****************.CreateInMessageReceiverIntentionAction</className>
            <category>APDL</category>
        </intentionAction>



What I'm doing wrong or missing?

Please sign in to leave a comment.