[Unity][Android] Check for null before getting the account name
This CL checks that Intent received by SigninFragmentBase.onActivityResult isn't null before trying to get account name from it. The Intent can be null on older Android versions, leading to a crash. Also, after this CL AccountPickerDialogFragment won't be dismissed if onActivityResult can't get the account name from the Intent, letting the user to select the account manually. Bug: None Change-Id: I4740410da75023ee73fb90b6f7f9659982b96190 Reviewed-on: https://chromium-review.googlesource.com/c/1335577Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#607978}
Showing
Please register or sign in to comment