ARTEMIS-4713 mitigate NPE in LargeMessageControllerImpl
This commit is contained in:
parent
144852b85f
commit
9f50aff46d
|
@ -318,6 +318,9 @@ public class LargeMessageControllerImpl implements LargeMessageController {
|
|||
@Override
|
||||
public LargeData take() throws InterruptedException {
|
||||
LargeData largeData = largeMessageData.take();
|
||||
if (largeData == null) {
|
||||
return null;
|
||||
}
|
||||
bytesTaken += largeData.getChunk().length;
|
||||
return largeData;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue