ARTEMIS-1420 prevent potential NPE

This commit is contained in:
Justin Bertram 2017-10-25 08:59:01 -05:00
parent 75c88410f0
commit de1165df6e

View File

@ -154,7 +154,7 @@ public class ProtocolHandler {
return;
}
if (handshakeTimeout > 0) {
if (handshakeTimeout > 0 && timeoutFuture != null) {
timeoutFuture.cancel(true);
timeoutFuture = null;
}