added extra NPE check

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-01-26 12:40:12 +00:00
parent b2b1e80b86
commit 40ce55be77
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ public class FailoverTransport implements CompositeTransport {
private final TransportListener myTransportListener = new TransportListener() {
public void onCommand(Command command) {
if (command == null) {
return;
}
if (command.isResponse()) {
requestMap.remove(new Short(((Response) command).getCorrelationId()));
}