Navigation Menu

Skip to content

Commit

Permalink
Only set the title if it is non-null and has at least on char
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Nov 6, 2011
1 parent 6a54ba1 commit 32af568
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -133,8 +133,11 @@ public void run(IProgressMonitor monitor) {
System.out.println("Produced DS URI: " + datasetURI);

monitor.subTask("Setting title");
monitor.worked(1);
opentox.setDatasetTitle(datasetURI, title);
if (title != null && title.length() > 0) {
System.out.println("Title: " + title);
monitor.worked(1);
opentox.setDatasetTitle(datasetURI, title);
}

monitor.subTask("Setting license");
monitor.worked(1);
Expand Down

0 comments on commit 32af568

Please sign in to comment.