Skip to content

Commit 63873d9

Browse files
raferncbracken
authored andcommitted
Fix objects equal to null not being detected as null (flutter#11283)
1 parent 7d42bc7 commit 63873d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ protected static final void writeAlignment(ByteArrayOutputStream stream, int ali
221221
* super for values that the extension does not handle.</p>
222222
*/
223223
protected void writeValue(ByteArrayOutputStream stream, Object value) {
224-
if (value == null) {
224+
if (value == null || value.equals(null)) {
225225
stream.write(NULL);
226226
} else if (value == Boolean.TRUE) {
227227
stream.write(TRUE);

0 commit comments

Comments
 (0)