mirror of https://github.com/apache/activemq.git
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:
parent
3817ed9a97
commit
a7f9164464
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue