Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
index 827468a8067e3b1580d21846ad9c2f79db6fd5c0..705559587449499d60c4eefa989aec5acffdb518 100644 |
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc |
@@ -2209,6 +2209,12 @@ void AutofillDialogViews::InputEditedOrActivated(ServerFieldType type, |
DecoratedTextfield* decorated = TextfieldForType(type); |
views::Combobox* combobox = ComboboxForType(type); |
+ |
+ // Both views may be NULL if the event comes from an inactive section, which |
+ // may occur when using an IME. |
+ if (!combobox && !decorated) |
+ return; |
+ |
DCHECK_NE(!!combobox, !!decorated); |
DetailsGroup* group = decorated ? GroupForView(decorated) : |
GroupForView(combobox); |