resolve NPE on stop when reconnect fails - resolve https://issues.apache.org/activemq/browse/AMQ-2811

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@964367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-07-15 10:18:02 +00:00
parent 3817ed9a97
commit a7f9164464
1 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,9 @@ public class NIOTransport extends TcpTransport {
}
protected void doStop(ServiceStopper stopper) throws Exception {
selection.close();
if (selection != null) {
selection.close();
}
super.doStop(stopper);
}
}