Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #91 from krasa/npe
Browse files Browse the repository at this point in the history
#88 npe fix
  • Loading branch information
jjlauer committed Apr 18, 2015
2 parents d2656a0 + 2b6f214 commit 7ca06a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ public void destroy() {
// this.clientBootstrap.releaseExternalResources();

try {
clientChannel.closeFuture().sync();
if (clientChannel != null) {
clientChannel.closeFuture().sync();
}
this.clientBootstrap = null;
} catch (InterruptedException e) {
logger.warn("Thread interrupted closing client channel.", e);
Expand Down

0 comments on commit 7ca06a0

Please sign in to comment.