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/util/ScriptedDesignVisitor.java
* @see org.eclipse.birt.model.api.DesignVisitor#visitDesignElement(org.eclipse.birt.model.api.DesignElementHandle)
	 */
	public void visitDesignElement( DesignElementHandle elementHandle )
	{
		List scriptMethods = elementHandle.getMethods( );
		for ( Iterator ite = scriptMethods.iterator( ); ite.hasNext( ); )
		{
			IElementPropertyDefn elementPropDefn = (IElementPropertyDefn) ite.next( );
			String methodName = elementPropDefn.getMethodInfo( ).getName( );
			if ( elementHandle.getStringProperty( methodName ) != null )
			{
				ScriptElementNode scriptElementNode = new ScriptElementNode( elementHandle );
				scriptNodes.add( scriptElementNode );
				break;
			}
		}
		for ( int i = 0; i < elementHandle.getDefn( ).getSlotCount( ); i++ )
		{
			visitContents( elementHandle.getSlot( i ) );
		}
		for ( int i = 0; i < elementHandle.getDefn( ).getContents( ).size( ); i++ )
		{
			visitContents( elementHandle,
					( (PropertyDefn) elementHandle.getDefn( )
							.getContents( )
							.get( i ) ).getName( ) );
		}
	}
}