Bug 26289 JUnit: Exceptions when add new JUnit launch config
Build 20021113 1. Create Java project called JUnit and import JUnit 2. Press Run... from running man button 3. Select JUnit and press New 4. Press Search ==> nothing happens except an exception being written to .log (see attached file)
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java
initializeTestContainer(javaElement, config);
		else
			initializeTestType(javaElement, config);
	}
	private void initializeTestContainer(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
		config.setAttribute(JUnitBaseLaunchConfiguration.LAUNCH_CONTAINER_ATTR, javaElement.getHandleIdentifier());
		initializeName(config, javaElement.getElementName());
	}
	private void initializeName(ILaunchConfigurationWorkingCopy config, String name) {
		if (name == null) {
			name= "";
		}
		if (name.length() > 0) {
			int index = name.lastIndexOf('.');
			if (index > 0) {
				name = name.substring(index + 1);
			}
			name= getLaunchConfigurationDialog().generateName(name);
			config.rename(name);
		}
	}
	/**
	 * Set the main type & name attributes on the working copy based on the IJavaElement
	 */
	protected void initializeTestType(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) {
		String name= ""; 
		try {
			 
			
			if ((javaElement instanceof ICompilationUnit) ||