Commit d3cf9d45 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* address unitialised editor issue in import wizard

parent 6a0a5fd6
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -182,12 +182,16 @@ public class ImportWizardPage extends WizardNewFileCreationPage {
	protected boolean validatePage() {
		boolean validatePage = super.validatePage();
		//basic check for referenced data file
		if (this.editor != null) {
			IPath sourcePath = Path.fromOSString(this.editor.getStringValue());
			boolean exists = sourcePath.toFile().exists();
			if (!exists) {
				setErrorMessage("The selected data file path is not valid.");
			}
			return exists && validatePage;
		} else {
			return false;
		}
	}
	
	private void flattenDataDefinitions(SelectionEvent e) {