[Web Payment][Android] Check for null pointers.
Before this patch, a null payment method section or unselected payment instrument could result in a NullPointerException inside of the isMicrotransactionUiApplicable() method in PaymentRequestImpl. This patch null-checks the payment method section and the selected payment instrument before accessing them. After this patch, isMicrotransactionUiApplicable() will not throw NullPointerException. Bug: 1046938 Change-Id: I14335effa84c5ca44a2de960f63e25fe3eb5ee2e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033676 Auto-Submit: Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#738331}
Showing
Please register or sign in to comment