Commit 4e6abdf0 authored by dbeam@chromium.org's avatar dbeam@chromium.org

rAc: minimal crash fix for bug 342990.

BUG=342990
TEST=no more crashes
R=estade@chromium.org

Review URL: https://codereview.chromium.org/165223002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251517 0039d316-1c4b-4281-b951-d872f2087c98
parent d92af9fd
......@@ -2208,6 +2208,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment