| Index: mojo/public/cpp/bindings/lib/map_serialization.h
|
| diff --git a/mojo/public/cpp/bindings/lib/map_serialization.h b/mojo/public/cpp/bindings/lib/map_serialization.h
|
| index 6874fbe5aeda80318f07eca8280157804930823a..0a5c8fb178d221003e07d15fbe29e28422dc656c 100644
|
| --- a/mojo/public/cpp/bindings/lib/map_serialization.h
|
| +++ b/mojo/public/cpp/bindings/lib/map_serialization.h
|
| @@ -162,7 +162,7 @@ template <typename MapKey,
|
| typename MapValue,
|
| typename DataKey,
|
| typename DataValue>
|
| -inline void Deserialize_(internal::Map_Data<DataKey, DataValue>* input,
|
| +inline bool Deserialize_(internal::Map_Data<DataKey, DataValue>* input,
|
| Map<MapKey, MapValue>* output,
|
| internal::SerializationContext* context) {
|
| if (input) {
|
| @@ -170,12 +170,14 @@ inline void Deserialize_(internal::Map_Data<DataKey, DataValue>* input,
|
| Array<MapValue> values;
|
|
|
| Deserialize_(input->keys.ptr, &keys, context);
|
| - Deserialize_(input->values.ptr, &values, context);
|
| + if (!Deserialize_(input->values.ptr, &values, context))
|
| + return false;
|
|
|
| *output = Map<MapKey, MapValue>(keys.Pass(), values.Pass());
|
| } else {
|
| output->reset();
|
| }
|
| + return true;
|
| }
|
|
|
| } // namespace mojo
|
|
|