Skip to content

Commit 8d2e793

Browse files
author
Aaron Mandle
committed
Review feedback, use TextUtils.isEmpty
1 parent b17fe5b commit 8d2e793

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/provider/GoogleProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import android.content.Intent;
2020
import android.os.Bundle;
2121
import android.support.annotation.Nullable;
22+
import android.text.TextUtils;
2223
import android.view.View;
2324
import android.view.View.OnClickListener;
2425

@@ -50,7 +51,7 @@ public GoogleProvider(Activity activity, IDPProviderParcel parcel, @Nullable Str
5051
.DEFAULT_SIGN_IN)
5152
.requestEmail()
5253
.requestIdToken(mClientId);
53-
if (email != null) {
54+
if (!TextUtils.isEmpty(email)) {
5455
builder.setAccountName(email);
5556
}
5657
googleSignInOptions = builder.build();

0 commit comments

Comments
 (0)