From b085574f949eb448f0b86ff1b0cce0cd59921e64 Mon Sep 17 00:00:00 2001 From: rafern <15365765+rafern@users.noreply.github.com> Date: Tue, 20 Aug 2019 13:21:58 +0100 Subject: [PATCH] Fix objects equal to null not being detected as null --- .../android/io/flutter/plugin/common/StandardMessageCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java b/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java index b99a3aee80788..118c7c34957ac 100644 --- a/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java +++ b/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java @@ -221,7 +221,7 @@ protected static final void writeAlignment(ByteArrayOutputStream stream, int ali * super for values that the extension does not handle.

*/ 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);