This commit is contained in:
deepak1556 2016-10-12 22:56:53 +05:30 committed by Kevin Sawicki
parent 2044208fd6
commit ad5f944185
2 changed files with 46 additions and 3 deletions

View file

@ -254,7 +254,8 @@ bool Converter<scoped_refptr<ResourceRequestBodyImpl>>::FromV8(
for (int i = 0; i < list->GetSize(); ++i) {
base::DictionaryValue* dict = nullptr;
std::string type;
list->GetDictionary(i, &dict);
if (!list->GetDictionary(i, &dict))
return false;
dict->GetString("type", &type);
if (type == "data") {
base::BinaryValue* bytes = nullptr;