mirror of https://github.com/apache/activemq.git
AMQ-1719: Avoid potential NPE in connection state tracker.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1395272 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7db7ed130b
commit
229c634a83
|
@ -98,7 +98,9 @@ public class ConnectionStateTracker extends CommandVisitorAdapter {
|
|||
public void onResponse(Command response) {
|
||||
ConnectionId connectionId = info.getConnectionId();
|
||||
ConnectionState cs = connectionStates.get(connectionId);
|
||||
cs.removeTransactionState(info.getTransactionId());
|
||||
if (cs != null) {
|
||||
cs.removeTransactionState(info.getTransactionId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue