We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b978c7d commit 18e5b31Copy full SHA for 18e5b31
src/flutter/shell/platform/common/client_wrapper/standard_codec.cc
@@ -318,6 +318,9 @@ StandardMessageCodec::~StandardMessageCodec() = default;
318
std::unique_ptr<EncodableValue> StandardMessageCodec::DecodeMessageInternal(
319
const uint8_t* binary_message,
320
size_t message_size) const {
321
+ if (!binary_message) {
322
+ return std::make_unique<EncodableValue>();
323
+ }
324
ByteBufferStreamReader stream(binary_message, message_size);
325
return std::make_unique<EncodableValue>(serializer_->ReadValue(&stream));
326
}
0 commit comments