[Payments] Handle absence of total in modifier.
Before this patch, a modifier without a total field would crash on desktop. This patch adds a check for presence of the total field in the modifier before dereferencing it. If the modifier total is absent, then the global total is used. After this patch, a modifier without a total field results in the global total being used without a crash. Bug: 814968 Change-Id: I1f946ed4526b948b2836e2144e3bdb2e7c167321 Reviewed-on: https://chromium-review.googlesource.com/935426Reviewed-by:anthonyvd <anthonyvd@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#539176}
Showing
Please register or sign in to comment