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:
Hiram R. Chirino 2008-03-04 17:55:01 +00:00
parent c84e58a948
commit 747b2ddc4a
1 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,9 @@ public final class OpenWireFormat implements WireFormat {
}
} else {
dataOut.writeInt(size);
if (!sizePrefixDisabled) {
dataOut.writeInt(size);
}
dataOut.writeByte(NULL_TYPE);
}
}