NPE calling com.intellij.psi.impl.cb.getPsiFile during second frame projectOpened()

What am I doing wrong?
This occurs when opening/creating a second project in another frame (http://www.intellij.net/forums/thread.jsp?forum=18&thread=39823&tstart=0&trange=100#553997) calling PsiDocumentManager.getPsiFile(Document)

I am clueless so any help would be appreciated

Jacques

java.lang.NullPointerException

at com.intellij.psi.impl.a.a.e.a(e.java:254)

at com.intellij.psi.impl.cb.b(cb.java:134)

at com.intellij.psi.impl.cb.getPsiFile(cb.java:139)

at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:82)

at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:147)

at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:98)

at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:81)

at org.intellij.plugins.config.Config.configChanged(Config.java:33)

at org.intellij.plugins.config.Config.projectOpened(Config.java:28)

at com.intellij.openapi.project.b.d.c(d.java:125)

at com.intellij.openapi.project.b.d.b(d.java:163)

at com.intellij.openapi.project.b.k.projectOpened(k.java:6)

at com.intellij.openapi.project.b.l.projectOpened(l.java:8)

at com.intellij.openapi.project.b.w.i(w.java:0)

at com.intellij.openapi.project.b.w.a(w.java:139)

at com.intellij.ide.p.p.a(p.java:48)

at com.intellij.ide.q.dl.actionPerformed(dl.java)

at com.intellij.openapi.actionSystem.a.k.actionPerformed(k.java:9)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at com.intellij.openapi.actionSystem.a.bb.fireActionPerformed(bb.java:6)

at com.intellij.ui.c.a.t.doClick(t.java:161)

at com.intellij.ui.c.a.t.access$300(t.java:7)

at com.intellij.ui.c.a.u.mouseReleased(u.java:5)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at com.intellij.ide.s.a(s.java:61)

at com.intellij.ide.s.dispatchEvent(s.java:110)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

1 comment
Comment actions Permalink

Answered in openapi group where this stacktrace first appear.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:15236531.1062527929678.JavaMail.itn@is.intellij.net...

What am I doing wrong?
This occurs when opening/creating a second project in another frame

(http://www.intellij.net/forums/thread.jsp?forum=18&thread=39823&tstart=0&tr
ange=100#553997) calling PsiDocumentManager.getPsiFile(Document)
>

I am clueless so any help would be appreciated

>

Jacques

>

java.lang.NullPointerException

>

at com.intellij.psi.impl.a.a.e.a(e.java:254)

>

at com.intellij.psi.impl.cb.b(cb.java:134)

>

at com.intellij.psi.impl.cb.getPsiFile(cb.java:139)

>

at

org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEd
itor(UntestedMethodHighlighter.java:82)
>

at

org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHigh
lighter.java:147)
>

at

org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMetho
dHighlighterState(JUnitTestConfiguration.java:98)
>

at

org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState
(JUnitTestConfiguration.java:81)
>

at org.intellij.plugins.config.Config.configChanged(Config.java:33)

>

at org.intellij.plugins.config.Config.projectOpened(Config.java:28)

>

at com.intellij.openapi.project.b.d.c(d.java:125)

>

at com.intellij.openapi.project.b.d.b(d.java:163)

>

at com.intellij.openapi.project.b.k.projectOpened(k.java:6)

>

at com.intellij.openapi.project.b.l.projectOpened(l.java:8)

>

at com.intellij.openapi.project.b.w.i(w.java:0)

>

at com.intellij.openapi.project.b.w.a(w.java:139)

>

at com.intellij.ide.p.p.a(p.java:48)

>

at com.intellij.ide.q.dl.actionPerformed(dl.java)

>

at com.intellij.openapi.actionSystem.a.k.actionPerformed(k.java:9)

>

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

>

at com.intellij.openapi.actionSystem.a.bb.fireActionPerformed(bb.java:6)

>

at com.intellij.ui.c.a.t.doClick(t.java:161)

>

at com.intellij.ui.c.a.t.access$300(t.java:7)

>

at com.intellij.ui.c.a.u.mouseReleased(u.java:5)

>

at java.awt.Component.processMouseEvent(Unknown Source)

>

at java.awt.Component.processEvent(Unknown Source)

>

at java.awt.Container.processEvent(Unknown Source)

>

at java.awt.Component.dispatchEventImpl(Unknown Source)

>

at java.awt.Container.dispatchEventImpl(Unknown Source)

>

at java.awt.Component.dispatchEvent(Unknown Source)

>

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

>

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

>

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

>

at java.awt.Container.dispatchEventImpl(Unknown Source)

>

at java.awt.Window.dispatchEventImpl(Unknown Source)

>

at java.awt.Component.dispatchEvent(Unknown Source)

>

at java.awt.EventQueue.dispatchEvent(Unknown Source)

>

at com.intellij.ide.s.a(s.java:61)

>

at com.intellij.ide.s.dispatchEvent(s.java:110)

>

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

>

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

>

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

>

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

>

at java.awt.EventDispatchThread.run(Unknown Source)



0

Please sign in to leave a comment.