Bug in #662 : "File -> Close Project"

An error is systematicaly generated when I close a project that I have opened either by creating a new one or by opening an existing project.

Here is the log:

8< SNIP SNIP -




2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - Error during dispatching of java.awt.event.FocusEvent[FOCUS_GAINED,permanent,opposite=com.intellij.openapi.wm.impl.di[,4,30,1071x856,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=1409,maximumSize=,minimumSize=,preferredSize=]] on ProjectPane com.intellij.ide.i.b.bv[,0,0,299x774,alignmentX=null,alignmentY=null,border=,flags=360,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=true,rowHeight=0,scrollsOnExpand=true,showsRootHandles=false,toggleClickCount=2,visibleRowCount=20]
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - IntelliJ IDEA 3.0 Build #662
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - JDK: 1.4.1_01
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - VM: Java HotSpot(TM) Client VM
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - Vendor: Sun Microsystems Inc.
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - OS: Windows XP
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p - Last Action: CloseProject
2002-10-22 11:43:32,304 ERROR - com.intellij.ide.p -
java.lang.NullPointerException
at com.intellij.ide.i.b.w.a(w.java:65)
at com.intellij.ide.i.b.br.a(br.java)
at com.intellij.ui.g.focusGained(g.java)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:158)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:157)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:157)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:157)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:157)
at java.awt.Component.processFocusEvent(Component.java:4996)
at java.awt.Component.processEvent(Component.java:4881)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3598)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:725)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:428)
at java.awt.Component.dispatchEventImpl(Component.java:3468)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at com.intellij.ide.p.a(p.java:88)
at com.intellij.ide.p.dispatchEvent(p.java:40)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
2002-10-22 11:43:36,601 INFO - com.intellij.idea.Main - -


IDEA SHUTDOWN -





8< SNIP SNIP -


4 comments
Comment actions Permalink

Hi danoul,

you always get that error when you close a project under 662??

I tried it out and I have no problem at all when I close a project! What JRE are you using???

-Steffen.

0
Comment actions Permalink

I just tried again and it worked fine...
Not so much systematic then...hope it's not one of those bugs that occur randomly ! ;)

I'll report similar errors when they happen again, trying to be more accurate on the execution context.

Anyway, to answer your question, I'm using the latest JDK from sun. (1.4.1_01)

Cheers
Dan.

0
Comment actions Permalink

I got the same problem, but only with certain projects. Other projects work fine.



Attachment(s):
guilib.ipr
0
Comment actions Permalink

I found a way to reproduce the problem:

- open any project
- close the project tool window if it's open
- press ALT+1 or click on the project button to open the project tool window
- choose File -> Close Projecct
- the error occurs

See the attached idea.log



Attachment(s):
idea.log
0

Please sign in to leave a comment.