Skip to content

Commit 18e5b31

Browse files
author
Hidenori Matsubayashi
authored
Update common-cpp-library (07262021) (sony#204)
Merged from flutter/engine@39f9a27
1 parent b978c7d commit 18e5b31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flutter/shell/platform/common/client_wrapper/standard_codec.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ StandardMessageCodec::~StandardMessageCodec() = default;
318318
std::unique_ptr<EncodableValue> StandardMessageCodec::DecodeMessageInternal(
319319
const uint8_t* binary_message,
320320
size_t message_size) const {
321+
if (!binary_message) {
322+
return std::make_unique<EncodableValue>();
323+
}
321324
ByteBufferStreamReader stream(binary_message, message_size);
322325
return std::make_unique<EncodableValue>(serializer_->ReadValue(&stream));
323326
}

0 commit comments

Comments
 (0)