Skip to content

Commit 9aa40ab

Browse files
authored
Update GoogleSignInImpl.cs
1 parent 62ac175 commit 9aa40ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

GoogleSignIn/Impl/GoogleSignInImpl.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,12 @@ public SignInListener() : base("com.google.googlesignin.IListener")
136136

137137
public void OnResult(int result, AndroidJavaObject acct)
138138
{
139-
Debug.Log("googlesignin.IListener : " + acct.Call<string>("toString"));
140-
Debug.Log("ID : " + acct.Call<string>("getId"));
139+
if(acct != null)
140+
{
141+
Debug.Log("googlesignin.IListener : " + acct.Call<string>("toString"));
142+
Debug.Log("ID : " + acct.Call<string>("getId"));
143+
}
144+
else Debug.LogError("Should not get null account");
141145
}
142146
}
143147

0 commit comments

Comments
 (0)