ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Google Play: AndroidJavaException: java.lang.NullPointerException: GoogleSignInAccount must not be null #1107

Closed ChrisNZL closed 1 year ago

ChrisNZL commented 1 year ago

Auto report. 0.3.6c. Android. Feedback ID: 0.3.6C_20221011-62PLY

Looks like an error when trying to open the Google Play Leaderboards. Have only had one report of this.

Looks like the user is signed into Google Play fine, so that's not the issue.

Probably need to wrap in a try/catch.

11:54:52, Frame 2771, EXCEPTION »  AndroidJavaException: java.lang.NullPointerException: GoogleSignInAccount must not be null
>>>>> CRITICAL ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

java.lang.NullPointerException: GoogleSignInAccount must not be null
com.google.android.gms.common.internal.Preconditions.checkNotNull(com.google.android.gms:play-services-basement@@17.1.1:11)
com.google.android.gms.games.Games.getLeaderboardsClient(com.google.android.gms:play-services-games@@20.0.0:70)
com.google.games.bridge.AllLeaderboardsUiRequest.getIntent(AllLeaderboardsUiRequest.java:18)
com.google.games.bridge.SimpleUiRequest.process(SimpleUiRequest.java:30)
com.google.games.bridge.HelperFragment.processRequest(HelperFragment.java:299)
com.google.games.bridge.HelperFragment.startRequest(HelperFragment.java:257)
com.google.games.bridge.HelperFragment.showAllLeaderboardsUi(HelperFragment.java:134)
com.unity3d.player.UnityPlayer.nativeRender(Native Method)
com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loopOnce(Looper.java:210)
android.os.Looper.loop(Looper.java:299)
com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
UnityEngine.AndroidJNISafe.CheckException ()
UnityEngine.AndroidJNISafe.CallStaticObjectMethod (System.IntPtr clazz, System.IntPtr methodID, UnityEngine.jvalue[] args)
UnityEngine.AndroidJavaObject._CallStatic[ReturnType] (System.String methodName, System.Object[] args)
GooglePlayGames.Android.AndroidHelperFragment.ShowAllLeaderboardsUI (System.Action`1[T] cb)
T2.CanvasMenu.Update ()

GameStates: ShowingTitleScreen, UsingMainMenu
OnlineGameInfo: Device is offline.
No previous server nor online game info.
CanvasMenu.CurrentCategory: Leaderboards
SystemPlayer InputDevice: Touchscreen
AccountDisplayName: XXXXX
UserIsCoreSupporter: False
ChrisNZL commented 1 year ago

0.3.7: