capacitor-game-services icon indicating copy to clipboard operation
capacitor-game-services copied to clipboard

err: Fatal Exception: java.lang.RuntimeException

Open erikwalle opened this issue 2 years ago • 1 comments

I haven't reproduced this myself but google is reporting it in their automated tests. I've also seen it on crashlytics, occurs in Android 8.1.

Line:

https://github.com/openforge/capacitor-game-services/blob/development/android/src/main/java/io/openforge/gameservices/GameServices.java#L57

Error:

Fatal Exception: java.lang.RuntimeException Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {com.overworld.app/com.overworld.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference

io.openforge.gameservices.GameServices.handleOnActivityResult (GameServices.java:57) com.getcapacitor.Bridge.onActivityResult (Bridge.java:1000) com.getcapacitor.BridgeActivity.onActivityResult (BridgeActivity.java:216) android.app.Activity.dispatchActivityResult (Activity.java:8300)

erikwalle avatar Aug 20 '21 01:08 erikwalle