| Index: components/browser_sync/profile_sync_service.cc
|
| diff --git a/components/browser_sync/profile_sync_service.cc b/components/browser_sync/profile_sync_service.cc
|
| index 5eb7949df19312fb33f3f7d137fa9432ae7ff581..f4e201bd7620def41ec15fbaedf00cbc653907d3 100644
|
| --- a/components/browser_sync/profile_sync_service.cc
|
| +++ b/components/browser_sync/profile_sync_service.cc
|
| @@ -2139,11 +2139,14 @@ void GetAllNodesRequestHelper::OnReceivedNodesForType(
|
| std::unique_ptr<base::ListValue> node_list) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| - // Add these results to our list.
|
| - std::unique_ptr<base::DictionaryValue> type_dict(new base::DictionaryValue());
|
| - type_dict->SetString("type", ModelTypeToString(type));
|
| - type_dict->Set("nodes", std::move(node_list));
|
| - result_accumulator_->Append(std::move(type_dict));
|
| + if (node_list) {
|
| + // Add these results to our list.
|
| + std::unique_ptr<base::DictionaryValue> type_dict(
|
| + new base::DictionaryValue());
|
| + type_dict->SetString("type", ModelTypeToString(type));
|
| + type_dict->Set("nodes", std::move(node_list));
|
| + result_accumulator_->Append(std::move(type_dict));
|
| + }
|
|
|
| // Remember that this part of the request is satisfied.
|
| awaiting_types_.Remove(type);
|
|
|