mirror of https://github.com/apache/activemq.git
Fixing edge case that does not normally occur. When marshalling a null object and size prefixing is disabled, we
were still prefixing the size of the data. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@633571 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c84e58a948
commit
747b2ddc4a
|
@ -256,7 +256,9 @@ public final class OpenWireFormat implements WireFormat {
|
|||
}
|
||||
|
||||
} else {
|
||||
dataOut.writeInt(size);
|
||||
if (!sizePrefixDisabled) {
|
||||
dataOut.writeInt(size);
|
||||
}
|
||||
dataOut.writeByte(NULL_TYPE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue