This closes #2335
This commit is contained in:
commit
5a600114b4
|
@ -551,12 +551,16 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
|
||||||
*/
|
*/
|
||||||
protected TypedProperties checkProperties() {
|
protected TypedProperties checkProperties() {
|
||||||
if (properties == null) {
|
if (properties == null) {
|
||||||
TypedProperties properties = new TypedProperties();
|
synchronized (this) {
|
||||||
if (buffer != null && propertiesLocation >= 0) {
|
if (properties == null) {
|
||||||
final ByteBuf byteBuf = buffer.duplicate().readerIndex(propertiesLocation);
|
TypedProperties properties = new TypedProperties();
|
||||||
properties.decode(byteBuf, coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesDecoderPools());
|
if (buffer != null && propertiesLocation >= 0) {
|
||||||
|
final ByteBuf byteBuf = buffer.duplicate().readerIndex(propertiesLocation);
|
||||||
|
properties.decode(byteBuf, coreMessageObjectPools == null ? null : coreMessageObjectPools.getPropertiesDecoderPools());
|
||||||
|
}
|
||||||
|
this.properties = properties;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.properties = properties;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.properties;
|
return this.properties;
|
||||||
|
|
Loading…
Reference in New Issue