-
Notifications
You must be signed in to change notification settings - Fork 309
user.getPhotoUrl().toString() null pointer exception #12
Comments
This is a bug in the sample code. Better yet, you can submit a PR to fix the issue. 👍 |
Hi i am also having the same problem with this code similar to above post FirebaseUser mUser = mFirebaseAuth.getCurrentUser(); any help |
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 |
@jamespinto I agree with @tikurahul this should fix it, if the error in this line is: |
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:
|
This issue was moved to googlearchive/friendlypix-android#27 |
I'm getting null pointer exception on loading image post. Uri returned from user.getPhotoUrl() is null
Logcat
The text was updated successfully, but these errors were encountered: