Index: chrome/browser/views/location_bar_view.cc |
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc |
index 70ce47825485a887dcd6714011555dc802918a97..3793d528170e7689dfcfe101bc40b078777b978a 100644 |
--- a/chrome/browser/views/location_bar_view.cc |
+++ b/chrome/browser/views/location_bar_view.cc |
@@ -1314,7 +1314,8 @@ void LocationBarView::PageActionImageView::OnImageLoaded(SkBitmap* image, |
DCHECK(index < page_action_icons_.size()); |
if (index == page_action_icons_.size() - 1) |
tracker_ = NULL; // The tracker object will delete itself when we return. |
- page_action_icons_[index] = *image; |
+ if (image) |
+ page_action_icons_[index] = *image; |
owner_->UpdatePageActions(); |
} |