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:
Claus Ibsen 2012-10-07 10:51:52 +00:00
parent 7db7ed130b
commit 229c634a83
1 changed files with 3 additions and 1 deletions

View File

@ -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());
}
}
}