openforge / capacitor-game-services

A capacitor plugin for both Apple Game Center and Google Play Game Services libraries.
MIT License
22 stars 5 forks source link

err: Fatal Exception: java.lang.RuntimeException #22

Open erikwalle opened 3 years ago

erikwalle commented 3 years ago

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)

jedihacks commented 1 year ago

@Ricardo385 can you look into this?