Commit bad2975d authored by Manas Verma's avatar Manas Verma Committed by Commit Bot

[Payments Autofill] Avoiding nullptr crashes in Payments Client

Adding a nullptr check to OnSimpleLoaderCompleteInternal() to avoid crashes
that have been appearing since M69.

Change-Id: Iaa1ddc1cefb741917029bbfb581995c7836d373a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949549Reviewed-by: default avatarJared Saul <jsaul@google.com>
Commit-Queue: Manas Verma <manasverma@google.com>
Cr-Commit-Position: refs/heads/master@{#721687}
parent 58ea6d68
......@@ -1241,6 +1241,9 @@ void PaymentsClient::OnSimpleLoaderCompleteInternal(int response_code,
AutofillClient::PaymentsRpcResult result = AutofillClient::SUCCESS;
if (!request_)
return;
switch (response_code) {
// Valid response.
case net::HTTP_OK: {
......
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