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,8 +372,10 @@ public class AMQPConnectionContext extends ProtonInitializable {
|
|||
|
||||
@Override
|
||||
public void onFlow(Link link) throws Exception {
|
||||
if (link.getContext() != null) {
|
||||
((ProtonDeliveryHandler) link.getContext()).onFlow(link.getCredit(), link.getDrain());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRemoteClose(Link link) throws Exception {
|
||||
|
|
Loading…
Reference in New Issue