Bug 136373 [EFS] Can't browse for files when creating linked resources
Build id: I20060412-0847 File > New > File Click Advanced Click Browse. Nothing happens, and an error appears in the log. Same for the new folder dialog. java.lang.NullPointerException at org.eclipse.ui.internal.ide.dialogs.CreateLinkedResourceGroup.handleLinkTargetBrowseButtonPressed(CreateLinkedResourceGroup.java:376) at org.eclipse.ui.internal.ide.dialogs.CreateLinkedResourceGroup.access$13(CreateLinkedResourceGroup.java:372) at org.eclipse.ui.internal.ide.dialogs.CreateLinkedResourceGroup$3.widgetSelected(CreateLinkedResourceGroup.java:260) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java
return createStatus(
					IStatus.WARNING,
					IDEWorkbenchMessages.CreateLinkedResourceGroup_unableToValidateLinkTarget);
		}
		IStatus locationStatus = workspace.validateLinkLocation(linkHandle,
				path);
		if (locationStatus.getSeverity() == IStatus.ERROR) {
			return locationStatus;
		}
		
		String resolvedLinkTarget = resolvedPathLabelData.getText();
		path = new Path(resolvedLinkTarget);
		IFileInfo linkTargetFile = IDEResourceInfoUtils
				.getFileInfo(resolvedLinkTarget);
		if (linkTargetFile != null && linkTargetFile.exists()) {
			IStatus fileTypeStatus = validateFileType(linkTargetFile);
			if (fileTypeStatus.isOK() == false) {
				return fileTypeStatus;
			}
		} else if (locationStatus.getSeverity() == IStatus.OK) {
			
			return createStatus(
					IStatus.WARNING,
					IDEWorkbenchMessages.CreateLinkedResourceGroup_linkTargetNonExistent);
		}
		return locationStatus;
	}
}