Bug 172817 NPE is thrown when press F2 in outline[00]
NPE is thrown when press F2 in outline[00] Build number: 2.2.0.v20070206 Steps to reproduce: 1.new a report 2.select the report in outline and press F2 Expected result: can't rename the report in outline Actual result: NPE is thrown Error log: N/A
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/RenameListener.java
* (non-Javadoc)
	 * 
	 * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
	 */
	public void widgetSelected( SelectionEvent e )
	{
		cancelTimer( );
		TreeItem lastSelect = selectedItem;
		TreeItem[] selectedItems = ( (Tree) e.getSource( ) ).getSelection( );
		if ( selectedItems.length != 1 )
		{
			readyToRename = false;
		}
		else
		{
			selectedItem = selectedItems[0];
			readyToRename = ( selectedItem == lastSelect );
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
	 */
	public void widgetDefaultSelected( SelectionEvent e )
	{
	}
	/**
	 * Cancels the timer
	 */