diff --git a/src/org/aavso/tools/vstar/ui/vela/VeLaDialog.java b/src/org/aavso/tools/vstar/ui/vela/VeLaDialog.java index 8e7a4f029..3b6bc3fac 100644 --- a/src/org/aavso/tools/vstar/ui/vela/VeLaDialog.java +++ b/src/org/aavso/tools/vstar/ui/vela/VeLaDialog.java @@ -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.