java.lang.RuntimeException: Unable to resume activity {com.softwareoverflow.cookingtimer/com.SoftwareOverflow.CookingScheduler.HomeScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.SoftwareOverflow.CookingScheduler.util.IabHelper.queryInventoryAsync(com.SoftwareOverflow.CookingScheduler.util.IabHelper$QueryInventoryFinishedListener)' on a null object reference

Stack Overflow | Alex Newton | 3 months ago
  1. 0

    android: app crashes after downloading from google play store (alpha channel)

    Stack Overflow | 3 months ago | Alex Newton
    java.lang.RuntimeException: Unable to resume activity {com.softwareoverflow.cookingtimer/com.SoftwareOverflow.CookingScheduler.HomeScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.SoftwareOverflow.CookingScheduler.util.IabHelper.queryInventoryAsync(com.SoftwareOverflow.CookingScheduler.util.IabHelper$QueryInventoryFinishedListener)' on a null object reference
  2. 0
    Use 'dialog' to access views from custom_layout layout.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  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 'void com.SoftwareOverflow.CookingScheduler.util.IabHelper.queryInventoryAsync(com.SoftwareOverflow.CookingScheduler.util.IabHelper$QueryInventoryFinishedListener)' on a null object reference

      at com.SoftwareOverflow.CookingScheduler.HomeScreen.checkPurchase()
    2. com.SoftwareOverflow.CookingScheduler
      HomeScreen.onResume
      1. com.SoftwareOverflow.CookingScheduler.HomeScreen.checkPurchase(HomeScreen.java:117)
      2. com.SoftwareOverflow.CookingScheduler.HomeScreen.onResume(HomeScreen.java:140)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280)
      2. android.app.Activity.performResume(Activity.java:6096)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
      6. android.app.ActivityThread.access$800(ActivityThread.java:155)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:135)
      10. android.app.ActivityThread.main(ActivityThread.java:5343)
      10 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames