if ( entry.getURL( ).getProtocol( ).equals( "file" ) )
if (entry.getURL( ) != null && entry.getURL( ).getProtocol( ).equals( "file" ) )
			public void selectionChanged( SelectionChangedEvent event )			{				Object object = ( (StructuredSelection) event.getSelection( ) ).getFirstElement( );				if ( object instanceof ResourceEntry )				{					ResourceEntry entry = (ResourceEntry) object;					if ( entry.getURL( ).getProtocol( ).equals( "file" ) ) //$NON-NLS-1$					{						File file = new File( entry.getURL( ).getPath( ) );						text.setEnabled( file.isDirectory( ) );					}					else					{						text.setText( "" ); //$NON-NLS-1$						text.setEnabled( false );					}				}				else				{					text.setText( "" ); //$NON-NLS-1$					text.setEnabled( false );				}			}