Index: ui/keyboard/keyboard_controller.cc |
diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc |
index bb3456efce12862fb9bea53c0ae2ef77f17f61fb..09fb34b397f99e8a599e890c5437aa8bdfdcf8fc 100644 |
--- a/ui/keyboard/keyboard_controller.cc |
+++ b/ui/keyboard/keyboard_controller.cc |
@@ -272,7 +272,7 @@ aura::Window* KeyboardController::GetContainerWindow() { |
void KeyboardController::NotifyKeyboardBoundsChanging( |
const gfx::Rect& new_bounds) { |
- if (proxy_->GetKeyboardWindow()->IsVisible()) { |
+ if (proxy_->HasKeyboardWindow() && proxy_->GetKeyboardWindow()->IsVisible()) { |
FOR_EACH_OBSERVER(KeyboardControllerObserver, |
observer_list_, |
OnKeyboardBoundsChanging(new_bounds)); |