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 DesignElementHandle parent;
	public ScriptElementNode( DesignElementHandle parent )
	{
		this.parent = parent;
	}
	public Object[] getChildren( )
	{
		if ( this.parent != null )
		{
			ScriptedElementVisitor visitor = new ScriptedElementVisitor( );
			return visitor.getScriptNodes( parent ).toArray( );
		}
		return new Object[0];
	}
	public Object getParent( )
	{
		return this.parent;
	}
	public void menuAboutToShow( IMenuManager manager )
	{
		manager.add( new GotoReportElementAction( getParent( ) ) );
	}
}
class GotoReportElementAction extends Action
{