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
private void cancelTimer( )
	{
		if ( timer != null )
		{
			timer.cancel( );
			timer = null;
		}
	}
	/**
	 * Cancels the inline rename action
	 */
	private void cancelRenaming( )
	{
		RenameInlineTool.cancelActiveInstance( );
		cancelTimer( );
	}
    /* (non-Javadoc)
     * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent)
     */
    public void doubleClick(DoubleClickEvent event)
    {
        
        cancelTimer( );
        if ( selectedItem != null && !selectedItem.isDisposed( ) )
        {
            
            new EditAction( selectedItem.getData( ) ).run( );
        }
    }
}