Skip to content

Commit

Permalink
TEIIDDES-2022 added check after dialog closes to ignore an empty or null
Browse files Browse the repository at this point in the history
string (cancelled with no jar file selection)
  • Loading branch information
blafond committed Jan 9, 2015
1 parent 9acd17f commit ddf1d09
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,10 @@ public void widgetSelected(SelectionEvent e) {
String selectedFile = VdbFileDialogUtil.selectFile(udfJarPathBrowse.getShell(),
getModelFile().getProject(),
VdbFolders.UDF);
getRelationalReference().setUdfJarPath(selectedFile);
handleInfoChanged();
if( selectedFile != null && !selectedFile.isEmpty() ) {
getRelationalReference().setUdfJarPath(selectedFile);
handleInfoChanged();
}
}
});

Expand Down

0 comments on commit ddf1d09

Please sign in to comment.