| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| From: fgei <fgei@gmail.com> |
| Date: Mon, 20 Feb 2023 07:06:53 +0000 |
| Subject: [PATCH] Add missing null check for password manager autofill |
| |
| --- |
| .../autofill/content/renderer/password_autofill_agent.cc | 4 +++- |
| 1 file changed, 3 insertions(+), 1 deletion(-) |
| |
| diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc |
| index 8bc8fe59b4e26..1372f3c440ff0 100644 |
| --- a/components/autofill/content/renderer/password_autofill_agent.cc |
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc |
| @@ -832,7 +832,9 @@ void PasswordAutofillAgent::UpdatePasswordStateForTextChange( |
| |
| void PasswordAutofillAgent::TrackAutofilledElement( |
| const blink::WebFormControlElement& element) { |
| - autofill_agent_->TrackAutofilledElement(element); |
| + if (autofill_agent_) { |
| + autofill_agent_->TrackAutofilledElement(element); |
| + } |
| } |
| |
| void PasswordAutofillAgent::FillPasswordSuggestion( |