ARTEMIS-1743 fix NPE in server log when Artemis trace logging is enabled
This commit is contained in:
parent
a00245dd06
commit
84a098a4f4
|
@ -644,8 +644,11 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
|
|||
|
||||
@Override
|
||||
public int getEncodeSize() {
|
||||
if (buffer == null) {
|
||||
return -1;
|
||||
}
|
||||
checkEncode();
|
||||
return buffer == null ? -1 : buffer.writerIndex();
|
||||
return buffer.writerIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue