2
0
mirror of synced 2025-02-20 01:58:09 +00:00

[auth] Fix issue with null photo URL when updating profile #911

This commit is contained in:
Chris Bianca 2018-03-27 16:21:14 +01:00
parent 6ff34f4daa
commit 9f9a3da5af

View File

@ -596,8 +596,7 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
if (props.hasKey("photoURL")) {
String photoURLStr = props.getString("photoURL");
Uri uri = Uri.parse(photoURLStr);
profileBuilder.setPhotoUri(uri);
profileBuilder.setPhotoUri(photoURLStr == null ? null : Uri.parse(photoURLStr));
}
UserProfileChangeRequest profileUpdates = profileBuilder.build();