Bug 5369 - NPE when closing an html file opened internally in the workspace
Summary: NPE when closing an html file opened internally in the workspace
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 5403 5564 6183 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-30 17:29 EST by Olivier Thomann CLA
Modified: 2001-11-23 16:22 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2001-10-30 17:29:37 EST
Using 206, 

1) Create an empty workspace
2) Create an html file 
3) Open it by double-clicking on it in the navigator view. I got a Netscape 
window encapsulated in the workspace.
4) Close it immediately without doing any change.
5) First problem: It asks if I want to save the file, but I didn't change it.
6) Second problem: I got an internal error and this stack trace in the log:

Log: Tue Oct 30 17:27:43 EST 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Tue Oct 30 17:27:44 EST 2001
4 org.eclipse.ui 0 java.lang.NullPointerException
java.lang.NullPointerException
	at 
org.eclipse.ui.internal.EditorWorkbook.setVisibleEditor(EditorWorkbook.java:613)
	at 
org.eclipse.ui.internal.EditorPresentation.setVisibleEditor(EditorPresentation.j
ava:328)
	at 
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:845)
	at 
org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:1284)
	at 
org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:427)
	at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:75)
	at 
org.eclipse.ui.internal.EditorWorkbook$1.itemClosed(EditorWorkbook.java:110)
	at org.eclipse.swt.custom.CTabFolder.closeNotify(CTabFolder.java:285)
	at org.eclipse.swt.custom.CTabFolder.onSelection(CTabFolder.java:993)
	at org.eclipse.swt.custom.CTabFolder.access$8(CTabFolder.java:985)
	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:204)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:638)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:675)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:658)
	at 
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:82
0)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:433)
	at org.eclipse.core.launcher.Main.main(Main.java:306)
Comment 1 Kevin Haaland CLA 2001-10-31 14:43:50 EST
Did Netscape open as external or internal editor?

What version of Netscape were you using?
Comment 2 Olivier Thomann CLA 2001-10-31 14:58:11 EST
I am using Netscape 4.75 for Windows 2000 as an internal editor.
Comment 3 Kevin Haaland CLA 2001-11-01 11:01:09 EST
*** Bug 5403 has been marked as a duplicate of this bug. ***
Comment 4 Veronika Irvine CLA 2001-11-06 16:02:30 EST
Happens for .bmp files too.
Comment 5 Olivier Thomann CLA 2001-11-13 13:09:21 EST
This problem needs to be solve quickly according to the fact that we report the 
changes in an HTML file and not a text file anymore. It is very frustrating to 
see that each time I open an html file inside the editor I got a NPE. This 
exception is reported again when the workspace is closed.
Editing the html with an external editor loses the synchronization with the 
workspace contents and is error-prone for losing fixes references and 
synchronization with stream.
Comment 6 Olivier Thomann CLA 2001-11-22 16:08:32 EST
All opened editors are unusable after the NPE. Do you have any idea when this 
will be fixed?
Comment 7 Eduardo Pereira CLA 2001-11-23 16:18:38 EST
NPE is fixed and released in 2.0 stream.
Comment 8 Eduardo Pereira CLA 2001-11-23 16:20:51 EST
*** Bug 5564 has been marked as a duplicate of this bug. ***
Comment 9 Eduardo Pereira CLA 2001-11-23 16:22:11 EST
*** Bug 6183 has been marked as a duplicate of this bug. ***