Skip to content

Commit

Permalink
Fix possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Aug 30, 2017
1 parent b94e9b9 commit 15df62e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void run() {
exitStatus = 1;
LOGGER.log(Level.SEVERE, "Unable to start shell", e);
try {
Throwable t = (e.getCause() != e) ? e.getCause() : e;
Throwable t = (e.getCause() != null) ? e.getCause() : e;
err.write(t.toString().getBytes());
err.flush();
} catch (IOException e2) {
Expand Down

0 comments on commit 15df62e

Please sign in to comment.