toString() plugi exception.

Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@63bd18,notifier=null,catchExceptions=false,when=1192624171218] on sun.awt.windows.WToolkit@16181be: Argument 0 for @NotNull parameter of com/intellij/psi/PsiManager.getInstance must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiManager.getInstance must not be null
at com.intellij.psi.PsiManager.getInstance(PsiManager.java)
at generate.tostring.psi.PsiAdapter.getPsiManager(PsiAdapter.java:60)
at generate.tostring.GenerateToStringContext.getManager(GenerateToStringContext.java:65)
at generate.tostring.GenerateToStringContext.getElementFactory(GenerateToStringContext.java:69)
at generate.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToStringActionHandlerImpl.java:116)
at generate.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateToStringActionHandlerImpl.java:74)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:51)
at com.intellij.openapi.application.impl.ApplicationImpl$13.compute(ApplicationImpl.java:3)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:111)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:263)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:35)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:59)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:135)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:66)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:45)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:212)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:205)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:6)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Please sign in to leave a comment.