Commit ea802f5d authored by Liquan (Max) Gu's avatar Liquan (Max) Gu Committed by Commit Bot

PRImpl#getClient adds null check

Change:
* PaymentRequestImpl#getClient adds null check for
ComponentPaymentRequest.

Bug: 1114133

Change-Id: Id994b6a4d20d24f54a088a6b08b46cca330f538d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341219Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795989}
parent 0a95d3ee
......@@ -2432,7 +2432,8 @@ public class PaymentRequestImpl
@Nullable
private PaymentRequestClient getClient() {
return mComponentPaymentRequestImpl.getClient();
return mComponentPaymentRequestImpl == null ? null
: mComponentPaymentRequestImpl.getClient();
}
// Pre-condition: the client is not null.
......
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