Bug 189597 [RCP]NEP throws out when create a crosstab to a template report item[1102]
Description: NEP throws out when create a crosstab to a template report item[1102] Build number: 2.2.0.v20070529-1039 RCP Steps to reproduce: 1, New a template 2, New a cube 3, New a crosstab 4, Right click the crosstab and select create template report item 5, Specify the name and click OK button Expected result: No excption occurs Actual result: An unexpected internal exception occurred.Please see log for detail. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Designer UI Plug-in ID:org.eclipse.birt.report.designer.ui Version:2.2.0.v20070529 Error Code:Error.GUIException.invokedByUnexpectedException Error Message:Caused by java.lang.NullPointerException. Error log:
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/views/outline/ScriptElementNode.java
private static final String ACTION_TEXT = Messages.getString( "ScriptElementNode.Action.Text" );
	private Object source;
	public GotoReportElementAction( Object seletedElement )
	{
		super( ACTION_TEXT );
		this.source = seletedElement;
	}
	public void run( )
	{
		fireSelectionChanged( );
	}
	/**
	 * Fires a selection changed event.
	 * 
	 * @param selection
	 *            the new selection
	 */
	protected void fireSelectionChanged( )
	{
		ReportRequest request = new ReportRequest( source );
		List list = new ArrayList( );
		list.add( source );
		request.setSelectionObject( list );
		request.setType( ReportRequest.SELECTION );
		SessionHandleAdapter.getInstance( )
				.getMediator( )
				.notifyRequest( request );
	}
}