Skip to content

Commit

Permalink
[java] Preventing possible NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 5, 2020
1 parent 86b8fd1 commit ef43db6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public void stop() {
}
});
} catch (Exception e) {
service.stop();
if (service != null) {
service.stop();
}
return Optional.empty();
}

Expand Down

0 comments on commit ef43db6

Please sign in to comment.