Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java |
index 3b0c29c650e43bfc59d82c24cf7f4d46201bde56..4a3b0e78116185b438d83c64adbbef070b624f35 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java |
@@ -38,6 +38,11 @@ public class AutofillServerProfilePreferences |
} |
assert mGUID != null; |
AutofillProfile profile = PersonalDataManager.getInstance().getProfile(mGUID); |
+ if (profile == null) { |
+ getActivity().finish(); |
+ return; |
+ } |
+ |
assert !profile.getIsLocal(); |
Preference profileDescription = findPreference(PREF_SERVER_PROFILE_DESCRIPTION); |