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
/**
	 * Create a new rename action under the specific viewer with the given text
	 * 
	 * @param sourceViewer
	 *            the source viewer
	 * @param text
	 *            the text of the action
	 */
	public RenameAction( TreeViewer sourceViewer, String text )
	{
		super( sourceViewer, text );
		setAccelerator( SWT.F2 );
		if ( isEnabled( ) )
		{
			selectedItem = getSelectedItems( )[0];
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.IAction#isEnabled()
	 */
	public boolean isEnabled( )
	{
		if ( getSelectedObjects( ).size( ) != 1 )
		{
			return false;
		}
		Object obj = super.getSelectedObjects( ).getFirstElement( );
		if ( obj instanceof EmbeddedImageHandle )