Skip to content

Commit

Permalink
#394: fixed error message resulting from no result for functions that…
Browse files Browse the repository at this point in the history
… return no values
  • Loading branch information
dbenn committed Jun 26, 2024
1 parent e85e2c6 commit 98350c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/org/aavso/tools/vstar/ui/vela/VeLaDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ private void execute() {
}

// Any standard error or output to show?
error += showOutput(errStream);
output += showOutput(outStream);
error = showOutput(errStream);
output = showOutput(outStream);

// Is there a result to show?
if ("".equals(error)) {
output = result.get().toHumanReadableString();
// Is there a result to show and no error?
if (result.isPresent() && "".equals(error)) {
output += result.get().toHumanReadableString();
}
} catch (Exception e) {
// Show error in text area.
Expand Down

0 comments on commit 98350c7

Please sign in to comment.