diff options
-rw-r--r-- | ash/system/tray/tray_bubble_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/system/tray/tray_bubble_view.cc b/ash/system/tray/tray_bubble_view.cc index dfdd5cf..b85794f 100644 --- a/ash/system/tray/tray_bubble_view.cc +++ b/ash/system/tray/tray_bubble_view.cc @@ -378,7 +378,7 @@ void TrayBubbleView::Init() { gfx::Rect TrayBubbleView::GetAnchorRect() { gfx::Rect rect; - if (anchor_widget()->IsVisible()) { + if (anchor_widget() && anchor_widget()->IsVisible()) { rect = anchor_widget()->GetWindowBoundsInScreen(); if (params_.anchor_type == ANCHOR_TYPE_TRAY) { if (params_.shelf_alignment == SHELF_ALIGNMENT_BOTTOM) { |