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

GitHub | kristfal | 5 months ago
  1. 0

    Android crashes in IabHelper.java

    GitHub | 5 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

    android.content.Context.getPackageName()' on a null object reference

    Stack Overflow | 1 month ago | Prasenjit Hiwale
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.antherx.prasenjit.ihdfbachatgat/com.antherx.prasenjit.ihdfbachatgat.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  3. 0

    Android: SharedPreferences PreferenceManager.getDefaultSharedPreferences in Class

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Abdulrahman Mesto - Google+

    google.com | 12 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  6. 0

    'java.lang.String android.content.Context.getPackageName()' on a null object reference

    ezeenow.com | 8 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

    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