[ANN] GenerateToString generate exception
Systematic exception on attempting to use it (build 1174).
java.lang.NullPointerException
at org.intellij.idea.plugin.tostring.GenerateToStringAction$GenerateToStringHandler.executeWriteAction(GenerateToStringAction.java:106)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:2)
at com.intellij.openapi.application.a.b.runWriteAction(b.java:132)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:2)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:2)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:5)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:26)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:9)
at com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:13)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:30)
at com.intellij.ui.b.a.h.doClick(h.java:134)
at com.intellij.ui.b.a.h.access$300(h.java:122)
at com.intellij.ui.b.a.h$a_.mouseReleased(h$a_.java:6)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:34)
at com.intellij.ide.q.a(q.java:136)
at com.intellij.ide.q.dispatchEvent(q.java:70)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
请先登录再写评论。
Seems to be something related with conflicting template. I activate another template and it seems to work now.
Fixed in v2.11
/Claus