-
Notifications
You must be signed in to change notification settings - Fork 61
user.getPhotoUrl().toString() null pointer exception #27
Comments
From @tikurahul on May 29, 2016 18:16 This is a bug in the sample code. Better yet, you can submit a PR to fix the issue. 👍 |
From @gkfillipus on August 5, 2016 21:48 Hi i am also having the same problem with this code similar to above post FirebaseUser mUser = mFirebaseAuth.getCurrentUser(); any help |
From @jamespinto on January 20, 2017 13:11 What is the solution for this? the following suggestion by tikurahul dint work Replace user.getPhotoUrl().toString() with user.getPhotoUrl() != null ? user.getPhotoUrl().toString() : null |
From @migueltarga on January 20, 2017 13:19
@jamespinto I agree with @tikurahul this should fix it, if the error in this line is: |
From @jamespinto on January 20, 2017 13:34 nope! not working. I am using the google signin provider to log the user in. Get a user's provider-specific profile information To get the profile information retrieved from the sign-in providers linked to a user, use the getProviderData method. For example:
|
Cleaning up issue fixed in upcoming v2. |
From @VihaanVerma89 on May 29, 2016 17:6
I'm getting null pointer exception on loading image post. Uri returned from user.getPhotoUrl() is null
Logcat
Copied from original issue: googlearchive/friendlypix#12
The text was updated successfully, but these errors were encountered: