Commit 92d11259 authored by Anne Lim's avatar Anne Lim Committed by Commit Bot

[AF] Add null check to SavePasswordInfoBar

Bug: 1135847
Change-Id: I62aa52b043558bea86d8b3e481d34a4190dc96e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521697Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Commit-Queue: Anne Lim <annelim@google.com>
Cr-Commit-Position: refs/heads/master@{#824989}
parent 06a4714a
......@@ -54,7 +54,7 @@ public class SavePasswordInfoBar extends ConfirmInfoBar {
if (ChromeFeatureList.isEnabled(
ChromeFeatureList.AUTOFILL_ENABLE_PASSWORD_INFO_BAR_ACCOUNT_INDICATION_FOOTER)
&& !TextUtils.isEmpty(mAccountInfo.getEmail())
&& mAccountInfo != null && !TextUtils.isEmpty(mAccountInfo.getEmail())
&& mAccountInfo.getAccountImage() != null) {
Resources res = layout.getResources();
int smallIconSize = res.getDimensionPixelSize(R.dimen.infobar_small_icon_size);
......
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