Skip to content

fix: java.lang.NullPointerException onActivityResult #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

MaximBelov
Copy link
Contributor

      Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void 
      org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference
       at com.andreszs.smsretriever.SMSRetriever.onActivityResult(SMSRetriever.java:256)
       at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:160)
       at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:375)
       at android.app.Activity.dispatchActivityResult(Activity.java:9362)
       at android.app.ActivityThread.deliverResults(ActivityThread.java:6056)
       at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5396)
       at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5508)
       at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
       at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:230)
       at android.os.Looper.loop(Looper.java:319)
       at android.app.ActivityThread.main(ActivityThread.java:8919)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
        

@MaximBelov MaximBelov force-pushed the fix-crash-onActivityResult branch from 4b5f5cd to 4402edc Compare November 20, 2024 18:46
@andreszs andreszs merged commit d2e5caf into andreszs:master Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants