add a null check for safety

This commit is contained in:
Robert Muir 2015-05-04 14:21:11 -04:00
parent a048f8944b
commit 2be1a09c77
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ public class Bootstrap {
private void stop() {
try {
node.close();
if (node != null) {
node.close();
}
} finally {
keepAliveLatch.countDown();
}