Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 409794 - NPE in WorkbenchPage when MultiPageEditorPart#init() raises a RuntimeException
Summary: NPE in WorkbenchPage when MultiPageEditorPart#init() raises a RuntimeException
Status: CLOSED DUPLICATE of bug 387475
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-03 19:35 EDT by Arnaud Brunet CLA
Modified: 2013-06-04 08:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Brunet CLA 2013-06-03 19:35:29 EDT
Hello,

If a RuntimeException is thrown in the MultiPageEditorPart.init() method, then the ComptaibilityEditor is null in the WorkbenchPage#busyOpenEditor() method causing a NPE and the real exception is masked.

Here the stacktrace :
java.lang.NullPointerException
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3112)
	at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3020)
	at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3002)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2998)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2962)


Regards,
Arnaud
Comment 1 Paul Webster CLA 2013-06-04 08:44:54 EDT

*** This bug has been marked as a duplicate of bug 387475 ***