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

Unified Diff: ui/aura/root_window.cc

Issue 7986001: aura: Fix a crash when moving mouse over the empty space on the root window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 9c50a2cf801ca0b2bb1b779fdf28aa3e29316363..f6b6b0256473aa4ea699523d851e793262b945a1 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -32,7 +32,7 @@ bool RootWindow::HandleMouseEvent(const MouseEvent& event) {
mouse_pressed_handler_ = target;
if (event.type() == ui::ET_MOUSE_RELEASED)
mouse_pressed_handler_ = NULL;
- if (target->delegate()) {
+ if (target && target->delegate()) {
MouseEvent translated_event(event, this, target);
return target->OnMouseEvent(&translated_event);
}
« 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