mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-05 17:00:17 +00:00
ARTEMIS-1420 prevent potential NPE
This commit is contained in:
parent
75c88410f0
commit
de1165df6e
@ -154,7 +154,7 @@ public class ProtocolHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
if (handshakeTimeout > 0) {
|
||||
if (handshakeTimeout > 0 && timeoutFuture != null) {
|
||||
timeoutFuture.cancel(true);
|
||||
timeoutFuture = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user