Bug 22269

Summary: [Navigator] File->Rename while already renaming hangs Navigator
Product: [Eclipse Project] Platform Reporter: Jeff Kobal <jkobal>
Component: UIAssignee: Knut Radloff <knut_radloff>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0.2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Log file with NPE that I get in addition to the one posted by Lynne none

Description Jeff Kobal CLA 2002-08-08 12:30:48 EDT
Scenario: Select a file in the Navigator then File->Rename.  While the 
name-editor window is in focus, select File->Rename again.  The name-editor 
window won't close, and the Navigator will become completely unresponsive.
Comment 1 Jeff Kobal CLA 2002-09-10 10:19:55 EDT
Is there any progress on this problem yet?
Comment 2 Lynne Kues CLA 2002-09-10 18:09:04 EDT
I don't see the "completely unresponsive" behavior, but the given scenario can 
lead to an NPE in build 20020827.  Do these steps:

1. Select item.  File==>Rename.
2. File==>Rename again while edit widget still has focus.
3. Select another view so that focus leaves Navigator view.
4. Select an item in the Navigator view.  Get NPE.  Stack as follows:

!ENTRY org.eclipse.ui 4 0 Sep 10, 2002 18:24:11.250
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.ui.actions.RenameResourceAction$3.handleEvent
(RenameResourceAction.java:269)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:727)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled 
Code))
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
	at org.eclipse.core.launcher.Main.run(Main.java:703)
	at org.eclipse.core.launcher.Main.main(Main.java:539)

Increasing the priority of this PR.
Comment 3 Jeff Kobal CLA 2002-09-11 10:44:15 EDT
Yes, I'd noticed the abend after getting into the hung state, and figured it was 
a side-effect of the hung Navigator.
Comment 4 Knut Radloff CLA 2002-09-18 16:09:36 EDT
Created attachment 2006 [details]
Log file with NPE that I get in addition to the one posted by Lynne
Comment 5 Knut Radloff CLA 2002-09-18 17:26:58 EDT
Released fix to HEAD and R2_0_1 streams.
Pinged Tod about updating plugin and fragment xml