final Uri photoUrl = user.getPhotoUrl();
userMap.putString("name", name);</BUG>
userMap.putString("token", token);
<BUG>userMap.putString("email", email);
userMap.putString("uid", uid);
userMap.putString("providerId", provider);</BUG>
userMap.putBoolean("anonymous", false);
<BUG>if (photoUrl!=null) {
userMap.putString("photoUrl",photoUrl.toString());
}
} else {
userMap.putString("msg", "no user");</BUG>
}

final Uri photoUrl = user.getPhotoUrl();
userMap.putString("email", email);
userMap.putString("uid", uid);
userMap.putString("providerId", provider);
if (name != null) {
userMap.putString("name", name);
}
if (photoUrl != null) {
userMap.putString("photoUrl", photoUrl.toString());
}
