ARTEMIS-814: Fix a bug where context could be null in case a connection was closed before the flow arrived
This commit is contained in:
parent
b2a5fe19d3
commit
6e5b917cc5
|
@ -372,7 +372,9 @@ public class AMQPConnectionContext extends ProtonInitializable {
|
|||
|
||||
@Override
|
||||
public void onFlow(Link link) throws Exception {
|
||||
((ProtonDeliveryHandler) link.getContext()).onFlow(link.getCredit(), link.getDrain());
|
||||
if (link.getContext() != null) {
|
||||
((ProtonDeliveryHandler) link.getContext()).onFlow(link.getCredit(), link.getDrain());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue