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
{
				sourceViewer.getTree( )
						.getDisplay( )
						.asyncExec( new Runnable( ) {
							public void run( )
							{
								renameAction.run( );
							}
						} );
			}
			
			}, Display.getCurrent( ).getDoubleClickTime( ) + 100 );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.swt.events.KeyListener#keyReleased(org.eclipse.swt.events.KeyEvent)
	 */
	public void keyReleased( KeyEvent e )
	{
		cancelTimer( );
		if ( e.keyCode == SWT.F2 && e.stateMask == 0 )
		{
			if ( selectedItem != null )
			{
				new RenameAction( sourceViewer ).run( );
			}
		}
	}
	/*