unittestPlugin Exceptions

Hey Jacques,

Today I realized I had a bunch of junit related stacktraces
in my idea window which look like that:

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:1)
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:143)
at com.intellij.psi.impl.bh.e(bh.java:166)
at com.intellij.psi.impl.a.a.b.c(b.java:55)
at com.intellij.psi.impl.a.a.b.a(b.java:144)
at com.intellij.psi.impl.bh.findClass(bh.java:156)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCa
sePsiClass(ToggleTestCaseTestedClassAction.java:150)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTes
t(ToggleTestCaseTestedClassAction.java:124)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMet
hodHighlighter.java:174)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(Unteste
dMethodHighlighter.java:279)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEd
itor(UntestedMethodHighlighter.java:95)
at
org.intellij.plugins.junit.UntestedMethodHighlighter$4.actionPerformed(Untes
tedMethodHighlighter.java:302)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:86)
at com.intellij.ide.q.a(q.java:85)
at com.intellij.ide.q.dispatchEvent(q.java:61)
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)

java.lang.NullPointerException
at com.intellij.psi.impl.g.a.b.m.a(m.java:108)
at com.intellij.psi.impl.g.a.b.j.g(j.java:78)
at com.intellij.psi.impl.g.a.p.a(p.java:89)
at com.intellij.psi.impl.g.a.p.a(p.java:25)
at com.intellij.psi.impl.a.a.b.c(b.java:61)
at com.intellij.psi.impl.a.a.b.a(b.java:144)
at com.intellij.psi.impl.bh.findClass(bh.java:156)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCa
sePsiClass(ToggleTestCaseTestedClassAction.java:150)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTes
t(ToggleTestCaseTestedClassAction.java:124)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMet
hodHighlighter.java:174)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(Unteste
dMethodHighlighter.java:279)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEd
itor(UntestedMethodHighlighter.java:95)
at
org.intellij.plugins.junit.UntestedMethodHighlighter$4.actionPerformed(Untes
tedMethodHighlighter.java:302)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.q.b(q.java:86)
at com.intellij.ide.q.a(q.java:85)
at com.intellij.ide.q.dispatchEvent(q.java:61)
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)

I have no idea how I got those, if I can reproduce them I'll let you know
Hope it still helps.
Build 1178, unittest 0.25

Vince.


Please sign in to leave a comment.