cordova-plugin-googleplus icon indicating copy to clipboard operation
cordova-plugin-googleplus copied to clipboard

RuntimeException: Failure delivering result ResultInfo{who=null, request=77552, result=-1, data=Intent { (has extras) }}

Open gustavo-iniguez-goya opened this issue 8 years ago • 1 comments
trafficstars

Hi,

Several users have reported the following exception after selecting the gmail account:

RuntimeException: Failure delivering result ResultInfo{who=null, request=77552, result=-1, data=Intent { (has extras) }} Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference

nl.xservices.plugins.GooglePlus.handleSignInResult (GooglePlus.java:300) nl.xservices.plugins.GooglePlus.onActivityResult (GooglePlus.java:274) org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInterfaceImpl.java:152) org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity.java:358) android.app.Activity.dispatchActivityResult (Activity.java:6222) android.app.ActivityThread.deliverResults (ActivityThread.java:3575) android.app.ActivityThread.handleSendResult (ActivityThread.java:3622) android.app.ActivityThread.access$1300 (ActivityThread.java:149) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1333) android.os.Handler.dispatchMessage (Handler.java:102) android.os.Looper.loop (Looper.java:135) android.app.ActivityThread.main (ActivityThread.java:5297) java.lang.reflect.Method.invoke (Method.java) java.lang.reflect.Method.invoke (Method.java:372) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:908) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:703)

I don't have much more insight on the problem, as I haven't reproduced it on my test devices.

These are the mobiles of the users: LG-H500 - android 5.0.1 (21) - 1GB RAM LG-K330 - android 5.1.1 (22) - 1,38 GB RAM

gustavo-iniguez-goya avatar Mar 22 '17 09:03 gustavo-iniguez-goya

I have just seen this crash in Firebase Crashlytics too. How can this be solved? At least to return an error code and not a crash. The stack trace points to line 322: savedCallbackContext.error("GoogleApiClient was never initialized"); so it seems the callback context is null.

These are the mobiles of the users: Samsung Galaxy A10 - android 9 (28) - 2GB RAM (302.9 MB free) Samsung Galaxy Note10+ - android 10 (29) - 8 GB RAM (4.48 GB free)

alexp25 avatar Sep 12 '20 13:09 alexp25