NPE in toolwindowmanagerimpl

Does anybody have an idea what the problem could be here?

java.lang.NullPointerException
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.a(ToolWindowManagerImpl.java:298)
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.a(ToolWindowManagerImpl.java:126)
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.registerToolWindow(ToolWindowManagerImpl.java:568)

thanks in advance
Jan

2 comments
Comment actions Permalink

Hello Jan,

Are you registering a toolwindow from the initComponent() method of your
plugin component? You should do this through StartupManager.registerPostStartupActivity()
instead.

Does anybody have an idea what the problem could be here?

java.lang.NullPointerException
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.a(ToolWindowManager
Impl.java:298)
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.a(ToolWindowManager
Impl.java:126)
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl.registerToolWindow(
ToolWindowManagerImpl.java:568)
thanks in advance
Jan

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

On Mon, 22 Sep 2008 10:04:39 +0200, Dmitry Jemerov <yole@jetbrains.com>
wrote:

Are you registering a toolwindow from the initComponent() method of your
plugin component? You should do this through
StartupManager.registerPostStartupActivity() instead.


That was indeed the problem, thanks.

Jan

0

Please sign in to leave a comment.