Bug 213405 NPE occurs when closed the report design
Description: NPE occurs when closed the report design Build number: 2.3.0.v20071219-1029 Steps to reproduce: 1, Using BUILD V20071219-1029 2, Create a report design 3, Closed this report design Expected result: No exception occurs Actual result: NPE Throws out Error log: java.lang.NullPointerException at org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.getEditorSite(ReportEditorProxy.java:77) at org.eclipse.ui.internal.EditorReference.doDisposePart(EditorReference.java:304) at org.eclipse.ui.internal.WorkbenchPartReference.dispose(WorkbenchPartReference.java:681) at org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1586) at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1345) at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1329) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1303) at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1358) at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61) at org.eclipse.ui.internal.PartStack.close(PartStack.java:543) at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206) at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:122) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:83) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67) at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:628) at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:207) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2165) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3750) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2381)
UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/editors/ReportEditorProxy.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.part.EditorPart#setPartName(java.lang.String)
	 */
	protected void setPartName( String partName )
	{
		this.title = partName;
		super.setPartName( partName );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.IPartListener#partActivated(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partActivated( IWorkbenchPart part )
	{
		if ( part instanceof ReportEditorProxy )
		{
			instance.partActivated( ( (ReportEditorProxy) part ).getEditorPart( ) );
		}
		else
		{
			instance.partActivated( part );
		}