Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: ui/message_center/views/message_center_view.cc

Issue 14991004: Fixes a crash bug of calling animator without check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index 32bccfe663f6de9dacd64ee014e5d5f5f83afb53..9521498044d83cac2e786e934633eda5ef787a11 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -499,7 +499,8 @@ void RichMessageListView::RemoveNotificationAt(int i) {
if (child->layer()) {
deleting_views_.insert(child);
} else {
- animator_->StopAnimatingView(child);
+ if (animator_.get())
+ animator_->StopAnimatingView(child);
delete child;
}
DoUpdateIfPossible();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698