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.MouseListener#mouseDown(org.eclipse.swt.events.MouseEvent)
	 */
	public void mouseDown( MouseEvent e )
	{
		cancelTimer( );
		if ( e.button != 1 )
		{
			cancelRenaming( );
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.swt.events.MouseListener#mouseUp(org.eclipse.swt.events.MouseEvent)
	 */
	public void mouseUp( MouseEvent e )
	{
		if ( !readyToRename )
		{
			return;
		}
		readyToRename = false;
		
		timer = new Timer( );
		final RenameAction renameAction = new RenameAction( sourceViewer );
		timer.schedule( new TimerTask( ) {
			public void run( )