java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle com.android.vending.billing.IInAppBillingService.a(int, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

Stack Overflow | 4ntoine | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android's IabHelper does not reconnect to the service on disconnected and lead to crashes

    Stack Overflow | 6 months ago | 4ntoine
    java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle com.android.vending.billing.IInAppBillingService.a(int, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'android.os.Bundle com.android.vending.billing.IInAppBillingService.a(int, java.lang.String, java.lang.String, java.lang.String)' on a null object reference

      at com.android.vending.billing.util.IabHelper.queryPurchases()
    2. com.android.vending
      IabHelper.queryInventory
      1. com.android.vending.billing.util.IabHelper.queryPurchases(IabHelper.java:822)
      2. com.android.vending.billing.util.IabHelper.queryInventory(IabHelper.java:526)
      3. com.android.vending.billing.util.IabHelper.queryInventory(IabHelper.java:505)
      3 frames