java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10001, result=-1, data=Intent { (has extras) }} to activity {com.eknathkadam.grammaruplite/com.webrich.base.ui.GoogleInAppPurchaseActivity}: java.lang.NullPointerException

Stack Overflow | Mac | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android in-app purchase crashing after payment

    Stack Overflow | 4 years ago | Mac
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10001, result=-1, data=Intent { (has extras) }} to activity {com.eknathkadam.grammaruplite/com.webrich.base.ui.GoogleInAppPurchaseActivity}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.google.billing.Base64.decode()
    2. com.google.billing
      IabHelper.handleActivityResult
      1. com.google.billing.Base64.decode(Base64.java:434)
      2. com.google.billing.Security.generatePublicKey(Security.java:87)
      3. com.google.billing.Security.verifyPurchase(Security.java:66)
      4. com.google.billing.IabHelper.handleActivityResult(IabHelper.java:437)
      4 frames
    3. com.webrich.base
      GoogleInAppPurchaseActivity.onActivityResult
      1. com.webrich.base.ui.GoogleInAppPurchaseActivity.onActivityResult(GoogleInAppPurchaseActivity.java:238)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:5192)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3137)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3184)
      4. android.app.ActivityThread.access$1100(ActivityThread.java:130)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
      6. android.os.Handler.dispatchMessage(Handler.java:99)
      7. android.os.Looper.loop(Looper.java:137)
      8. android.app.ActivityThread.main(ActivityThread.java:4745)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame