Internal Error while Refactoring Extract Method
Hi,
I encoutered this NullPointerException while extracting a method. The exeption showed up, after I hit the OK button the in the refactoring dialog.
ERROR - m.intellij.openapi.command.b.b -
ERROR - m.intellij.openapi.command.b.b - IntelliJ IDEA (Ariadna) 3.0
Build #655
ERROR - m.intellij.openapi.command.b.b - JDK: 1.4.0_01
ERROR - m.intellij.openapi.command.b.b - VM: Java HotSpot(TM) Client
VM
ERROR - m.intellij.openapi.command.b.b - Vendor: Sun Microsystems Inc
.
ERROR - m.intellij.openapi.command.b.b - OS: Windows 2000
ERROR - m.intellij.openapi.command.b.b -
java.lang.NullPointerException
at com.intellij.psi.b.e.d.i.a(i.java:28)
at com.intellij.psi.b.e.i.a(i.java:127)
at com.intellij.psi.b.e.m.a(m.java:26)
at com.intellij.psi.b.e.i.addBefore(i.java:39)
at com.intellij.refactoring.l.g.a(g.java:291)
at com.intellij.refactoring.l.g.f(g.java:202)
at com.intellij.refactoring.l.g.e(g.java:138)
at com.intellij.refactoring.l.f.run(f.java:2)
at com.intellij.openapi.application.a.e.runWriteAction(e.java:246)
at com.intellij.refactoring.l.e.run(e.java:0)
at com.intellij.openapi.command.b.b.executeCommand(b.java:59)
at com.intellij.refactoring.l.d.a(d.java:15)
at com.intellij.refactoring.p.e.actionPerformed(e.java:5)
at com.intellij.openapi.actionSystem.b.k.actionPerformed(k.java:7)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
67)
at com.intellij.openapi.actionSystem.b.ba.fireActionPerformed(ba.java:15
)
at com.intellij.ui.a.a.n.doClick(n.java:161)
at com.intellij.ui.a.a.n.access$300(n.java:100)
at com.intellij.ui.a.a.o.mouseReleased(o.java:0)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at com.intellij.ide.o.a(o.java:20)
at com.intellij.ide.o.dispatchEvent(o.java:107)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:191)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Please sign in to leave a comment.
Hendrik,
do you have a test case for this?
Also, please submit a request in tracker (http://www.intellij.net/tracker)
Friendly,
Dmitry
Hendrik Schreiber wrote:
--
Dmitry Lomov
JetBrains Inc. / IntelliJ Labs
http://www.intellij.com
"Develop with pleasure!"
I submitted it. Unfortunately I don't have a testcase. This happens every now and then.
cheers,
-hendrik