Mercurial > stress-tester
changeset 1006:dadf915aa1f6
EmitterUtils minor
author | Devel 2 |
---|---|
date | Wed, 18 Mar 2020 12:28:07 +0100 |
parents | c91b2c0ca234 |
children | bacaa71e4d16 |
files | stress-tester/src/main/java/com/passus/st/emitter/EmitterUtils.java |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/EmitterUtils.java Wed Mar 18 12:27:55 2020 +0100 +++ b/stress-tester/src/main/java/com/passus/st/emitter/EmitterUtils.java Wed Mar 18 12:28:07 2020 +0100 @@ -5,7 +5,6 @@ import com.passus.net.IpSubnet; import com.passus.net.utils.AddressUtils; import com.passus.st.emitter.SessionMapper.ConnectionParams; -import com.passus.st.emitter.socket.AbstractChannelContext; import org.apache.logging.log4j.Logger; import java.net.InetAddress; @@ -70,10 +69,12 @@ } } - try { - handler.errorOccurred(channelContext, cause); - } catch (Exception e) { - logger.debug(e.getMessage(), e); + if (handler != null) { + try { + handler.errorOccurred(channelContext, cause); + } catch (Exception e) { + logger.debug(e.getMessage(), e); + } } }