ARTEMIS-4713 mitigate NPE in LargeMessageControllerImpl

This commit is contained in:
Justin Bertram 2024-04-04 14:34:24 -05:00 committed by clebertsuconic
parent 144852b85f
commit 9f50aff46d
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}