Skip to content

Commit

Permalink
also check if exchange.getMessage().getBody() is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovg committed Feb 19, 2025
1 parent 7378d2e commit cf48c8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private MessageEvent getSuccessMessageEvent(
InputStream inputStream = exchange.getMessage().getBody(InputStream.class);

byte[] body = null;
if (inputStream != null) {
if (inputStream != null && exchange.getMessage().getBody() != null) {
try {
body = IOUtils.toByteArray(inputStream);
} catch (Exception e) { }
Expand Down

0 comments on commit cf48c8c

Please sign in to comment.