mirror of https://github.com/apache/activemq.git
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:
parent
b2b1e80b86
commit
40ce55be77
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue