Skip to content

Commit

Permalink
ARTEMIS-1743 fix NPE in server log when Artemis trace logging is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sknot-rh authored and clebertsuconic committed Mar 14, 2018
1 parent a00245d commit 84a098a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,11 @@ public Message setLastValueProperty(SimpleString lastValueName) {

@Override
public int getEncodeSize() {
if (buffer == null) {
return -1;
}
checkEncode();
return buffer == null ? -1 : buffer.writerIndex();
return buffer.writerIndex();
}

@Override
Expand Down

0 comments on commit 84a098a

Please sign in to comment.