提交 63873d9f 编写于 作者: R rafern 提交者: Chris Bracken

Fix objects equal to null not being detected as null (#11283)

上级 7d42bc70
......@@ -221,7 +221,7 @@ public class StandardMessageCodec implements MessageCodec<Object> {
* super for values that the extension does not handle.</p>
*/
protected void writeValue(ByteArrayOutputStream stream, Object value) {
if (value == null) {
if (value == null || value.equals(null)) {
stream.write(NULL);
} else if (value == Boolean.TRUE) {
stream.write(TRUE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册