Bug 162340 NPE thrown when select the report name in outline and press F2 in RCP
NPE thrown when select the report name in outline and press F2 in RCP Steps to reproduce: 1.new a RCP report and new a report design 2.go to outline and select the report design name 3.press F2 Expected result: No NPE thrown in error log Actual result: NPE thrown in erro log
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/RenameAction.java
if ( selectedItem.getData( ) instanceof DesignElementHandle
				|| selectedItem.getData( ) instanceof EmbeddedImageHandle )
		{
			initOriginalName( );
			RenameInputDialog inputDialog = new RenameInputDialog( selectedItem.getParent( )
					.getShell( ),
					Messages.getString( "RenameInputDialog.DialogTitle" ),
					Messages.getString( "RenameInputDialog.DialogMessage" ),
					originalName,
					null );
			inputDialog.create( );
			if ( inputDialog.open( ) == Window.OK )
			{
				saveChanges( inputDialog.getValue( ).trim( ) );
			}
		}
	}
	private void initOriginalName( )
	{
		if ( selectedItem.getData( ) instanceof DesignElementHandle )
		{
			originalName = ( (DesignElementHandle) selectedItem.getData( ) ).getQualifiedName( );
		}
		if ( selectedItem.getData( ) instanceof EmbeddedImageHandle )
		{
			originalName = ( (EmbeddedImageHandle) selectedItem.getData( ) ).getQualifiedName( );
		}
		if ( originalName == null )
		{
			originalName = "";