| Index: chrome/browser/ui/webui/downloads_dom_handler.cc
|
| diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| index 3c9f22dc8b17726f8fba8f69e50ba2e8b0075ff9..4116661589652bc41135a9acafeb07592d28bbef 100644
|
| --- a/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| +++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
|
| @@ -192,7 +192,8 @@ void DownloadsDOMHandler::OnDownloadDestroyed(
|
| OrderedDownloads::iterator it = std::find(download_items_.begin(),
|
| download_items_.end(),
|
| download);
|
| - *it = NULL;
|
| + if (it != download_items_.end())
|
| + *it = NULL;
|
| // A later ModelChanged() notification will change the WebUI's
|
| // view of the downloads list.
|
| }
|
|
|