Rearranger bug on enums

Hello Dave,

Little issue with the LiveRearranger and jdk 5.0-rc:

public class Foo {
enum Bar { a, b, c};
}

ERROR - mand.impl.CommandProcessorImpl - Current Command: Live
Rearranger
ERROR - mand.impl.CommandProcessorImpl -
java.lang.NullPointerException
at
com.wrq.rearranger.entry.ClassEntry.parseField(ClassEntry.java:225)
at
com.wrq.rearranger.entry.ClassEntry.parseRemainingClassContents(ClassEntry.j
ava:156)
at
com.wrq.rearranger.entry.ClassEntry.parseClass(ClassEntry.java:109)
at
com.wrq.rearranger.entry.ClassEntry.parseRemainingClassContents(ClassEntry.j
ava:185)
at
com.wrq.rearranger.entry.ClassEntry.parseClass(ClassEntry.java:109)
at
com.wrq.rearranger.entry.ClassEntry.parseRemainingClassContents(ClassEntry.j
ava:185)
at
com.wrq.rearranger.entry.PsiFileEntry.parseFile(PsiFileEntry.java:81)
at
com.wrq.rearranger.rearrangement.Parser.parseOuterLevel(Parser.java:49)
at
com.wrq.rearranger.LiveRearrangerActionHandler.liveRearrangeDocument(LiveRea
rrangerActionHandler.java:206)
at
com.wrq.rearranger.LiveRearrangerActionHandler$1.run(LiveRearrangerActionHan
dler.java:139)
at com.intellij.openapi.e.b.c.runWriteAction(c.java:318)
at
com.wrq.rearranger.LiveRearrangerActionHandler.buildLiveRearrangerData(LiveR
earrangerActionHandler.java:134)
at
com.wrq.rearranger.LiveRearrangerActionHandler.execute(LiveRearrangerActionH
andler.java:90)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.jav
a:67)
at com.intellij.openapi.command.a.a.executeCommand(a.java:47)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:73)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:58)
at com.intellij.openapi.f.a.e.a(e.java:49)
at com.intellij.openapi.f.a.e.b(e.java:116)
at com.intellij.openapi.f.a.e.a(e.java:99)
at com.intellij.ide.t.a(t.java:146)
at com.intellij.ide.t.dispatchEvent(t.java:134)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va: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)


Cheers,

Vince.


1 comment

Thanks, Vince, I'll fix it.
-Dave

0

Please sign in to leave a comment.