Rearranger: Exception

java.lang.RuntimeException: adjustSpacing: illegal syntax (mismatched braces); PsiElement for brace is null

at com.wrq.rearranger.rearrangement.Spacer.adjustSpacing(Spacer.java:413)

at com.wrq.rearranger.rearrangement.Spacer.adjustSpacing(Spacer.java:356)

at com.wrq.rearranger.rearrangement.Spacer.access$000(Spacer.java:25)

at com.wrq.rearranger.rearrangement.Spacer$1.visitClass(Spacer.java:106)

at com.intellij.psi.JavaElementVisitor.visitTypeParameter(JavaElementVisitor.java:392)

at com.intellij.psi.impl.source.tree.a.cy.accept(cy.java:34)

at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:101)

at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at com.intellij.psi.JavaElementVisitor.visitTypeParameterList(JavaElementVisitor.java:264)

at com.intellij.psi.impl.source.tree.a.da.accept(da.java:20)

at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:101)

at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:190)

at com.wrq.rearranger.rearrangement.Spacer$1.visitMethod(Spacer.java:201)

at com.intellij.psi.impl.source.w.accept(w.java:120)

at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:101)

at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:54)

at com.wrq.rearranger.rearrangement.Spacer$1.visitClass(Spacer.java:113)

at com.intellij.psi.impl.source.l.accept(l.java:67)

at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:101)

at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:130)

at com.wrq.rearranger.rearrangement.Spacer$1.visitFile(Spacer.java:82)

at com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.java:328)

at com.intellij.psi.impl.source.t.accept(t.java:187)

at com.wrq.rearranger.rearrangement.Spacer.respace(Spacer.java:272)

at com.wrq.rearranger.RearrangerActionHandler.rearrangeDocument(RearrangerActionHandler.java:186)

at com.wrq.rearranger.RearrangerActionHandler$rearrangerTask.run(RearrangerActionHandler.java:218)

at com.intellij.openapi.command.a.a.executeCommand(a.java:34)

at com.intellij.openapi.command.a.a.executeCommand(a.java:113)

at com.wrq.rearranger.RearrangerActionHandler.runWriteActionRearrangement(RearrangerActionHandler.java:136)

at com.wrq.rearranger.RearrangerActionHandler$1.run(RearrangerActionHandler.java:96)

at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:36)

at com.wrq.rearranger.RearrangerActionHandler.execute(RearrangerActionHandler.java:89)

at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:40)

at com.intellij.openapi.command.a.a.executeCommand(a.java:92)

at com.intellij.openapi.command.a.a.executeCommand(a.java:113)

at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:46)

at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:31)

at com.intellij.openapi.actionSystem.impl.i$b_.actionPerformed(i$b_.java:3)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

at com.intellij.openapi.actionSystem.impl.i.fireActionPerformed(i.java:39)

at com.intellij.ui.plaf.beg.f.doClick(f.java:22)

at com.intellij.ui.plaf.beg.f.access$300(f.java:234)

at com.intellij.ui.plaf.beg.f$a_.mouseReleased(f$a_.java:1)

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.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:80)

at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:119)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:152)

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)

Please sign in to leave a comment.