WorkspacePlugin: NPE in openFile

Workspace Plugin version 0.12.

If you remove a file from your project that is part of a workspace, opening that workspace will throw the following error:

2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_CLICKED,(110,921),button=1,modifiers=Button1,clickCount=2] on frame0
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA (Aurora) Build #977
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.4.2_02
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - Last Action:
2003-11-24 11:41:54,568 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_CLICKED,(110,921),button=1,modifiers=Button1,clickCount=2] on frame0
java.lang.IllegalArgumentException: file cannot be null
at com.intellij.openapi.fileEditor.b.f.openFile(f.java:279)
at com.chrisbartley.idea.workspaces.Workspace.openFile(Workspace.java:119)
at com.chrisbartley.idea.workspaces.Workspace.open(Workspace.java:103)
at com.chrisbartley.idea.workspaces.WorkspaceManager.openWorkspace(WorkspaceManager.java:299)
at com.chrisbartley.idea.workspaces.WorkspacesToolWindowMouseListener.openWorkspace(WorkspacesToolWindowMouseListener.java:65)
at com.chrisbartley.idea.workspaces.WorkspacesToolWindowMouseListener.mouseClicked(WorkspacesToolWindowMouseListener.java:54)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.Component.processMouseEvent(Component.java:5103)
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:3207)
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.s.a(s.java:25)
at com.intellij.ide.s.dispatchEvent(s.java:107)
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)

Todd Breiholz

1 comment

This is a TODO item ("Handle moved/deleted/renamed files which belong to one or more workspaces.") that's unfortunately existed for a long time. I'll try to get to it soon.

Thanks.

0

Please sign in to leave a comment.