FirebaseExtended / firebase-video-samples

This repository contains sample code for some of the videos on the Firebase YouTube channel.
https://www.youtube.com/c/firebase
Apache License 2.0
113 stars 114 forks source link

FIX: uncaught exception from unsafe array access #56

Closed Coding-Solo closed 6 months ago

Coding-Solo commented 6 months ago

Fixes an issue where repeatedly signing in and out can sometimes cause providerData to not have any items within the array, causing the app to crash with:

This is a safety check to prevent that from happening.

alt-text

google-cla[bot] commented 6 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.