From 1794620c40ebc864e1fb881e4d7d483aaed244c1 Mon Sep 17 00:00:00 2001 From: Tarrin Neal Date: Tue, 18 Jun 2024 23:00:53 -0700 Subject: [PATCH] Update StandardMessageCodec.readValue to be @Nullable --- .../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 7e1978eaec624..c13b5681c8e0d 100644 --- a/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java +++ b/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java @@ -331,7 +331,7 @@ protected static final void readAlignment(@NonNull ByteBuffer buffer, int alignm } /** Reads a value as written by writeValue. */ - @NonNull + @Nullable protected final Object readValue(@NonNull ByteBuffer buffer) { if (!buffer.hasRemaining()) { throw new IllegalArgumentException("Message corrupted");