java.lang.NullPointerException: Attempt to read from field 'com.android.server.am.TaskRecord com.android.server.am.ActivityRecord.task' on a null object reference

GitHub | gubatron | 4 months ago
  1. 0

    [android/crash] crash on shutdown (probably the finishActivityAffinity)

    GitHub | 4 months ago | gubatron
    java.lang.NullPointerException: Attempt to read from field 'com.android.server.am.TaskRecord com.android.server.am.ActivityRecord.task' on a null object reference
  2. 0

    GitHub comment 2#108637924

    GitHub | 2 years ago | cuiyuming
    java.lang.NullPointerException: Attempt to read from field 'com.android.server.am.TaskRecord com.android.server.am.ActivityRecord.task' on a null object reference
  3. 0
    Upgrade BetterPickers to 2.0.0 or later.
    via GitHub by bbbenja
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    You can't use hide() or remove() or many things with NULL values, try checking for NULL before calling this methods.
  6. 0
    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment and vice-versa

    4 unregistered visitors
    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 read from field 'com.android.server.am.TaskRecord com.android.server.am.ActivityRecord.task' on a null object reference

      at android.os.Parcel.readException()
    2. Android Platform
      Activity.finishAffinity
      1. android.os.Parcel.readException(Parcel.java:1552)
      2. android.os.Parcel.readException(Parcel.java:1499)
      3. android.app.ActivityManagerProxy.finishActivityAffinity(ActivityManagerNative.java:2790)
      4. android.app.Activity.finishAffinity(Activity.java:4752)
      4 frames
    3. com.frostwire.android
      AppLovinInterstitialAdapter.adHidden
      1. com.frostwire.android.gui.activities.MainActivity.shutdown(MainActivity.java:177)
      2. com.frostwire.android.offers.Offers$AdNetworkHelper.dismissAndOrShutdownIfNecessary(Offers.java:280)
      3. com.frostwire.android.offers.AppLovinInterstitialAdapter.adHidden(AppLovinInterstitialAdapter.java:119)
      3 frames
    4. com.applovin.adview
      q.onClick
      1. com.applovin.adview.AppLovinInterstitialActivity.c(Unknown Source)
      2. com.applovin.adview.AppLovinInterstitialActivity.dismiss(Unknown Source)
      3. com.applovin.adview.q.onClick(Unknown Source)
      3 frames