java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

GitHub | kristfal | 6 months ago
  1. 0

    Android crashes in IabHelper.java

    GitHub | 6 months ago | kristfal
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

      at com.alexdisler.inapppurchases.IabHelper.queryPurchases()
    2. com.alexdisler.inapppurchases
      IabHelper$2.run
      1. com.alexdisler.inapppurchases.IabHelper.queryPurchases(IabHelper.java:849)
      2. com.alexdisler.inapppurchases.IabHelper.queryInventory(IabHelper.java:571)
      3. com.alexdisler.inapppurchases.IabHelper.queryInventory(IabHelper.java:535)
      4. com.alexdisler.inapppurchases.IabHelper$2.run(IabHelper.java:630)
      4 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:818)
      1 frame