java.lang.RuntimeException: Unable to resume activity {me.ccrama.redditslide.debug/me.ccrama.redditslide.Activities.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'android.view.View android.support.v7.widget.RecyclerView$ViewHolder.itemView' on a null object reference

GitHub | ccrama | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1912#232510281

    GitHub | 8 months ago | ccrama
    java.lang.RuntimeException: Unable to resume activity {me.ccrama.redditslide.debug/me.ccrama.redditslide.Activities.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'android.view.View android.support.v7.widget.RecyclerView$ViewHolder.itemView' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to read from field 'android.view.View android.support.v7.widget.RecyclerView$ViewHolder.itemView' on a null object reference

      at me.ccrama.redditslide.Adapters.SubmissionAdapter.performClick()
    2. me.ccrama.redditslide
      SubmissionsView.onResume
      1. me.ccrama.redditslide.Adapters.SubmissionAdapter.performClick(SubmissionAdapter.java:416)
      2. me.ccrama.redditslide.Fragments.SubmissionsView.onResume(SubmissionsView.java:361)
      2 frames
    3. Android Support v4
      FragmentActivity.onPostResume
      1. android.support.v4.app.Fragment.performResume(Fragment.java:2020)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1107)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
      5. android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:2056)
      6. android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:196)
      7. android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:505)
      8. android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:494)
      8 frames
    4. Android v7
      AppCompatActivity.onPostResume
      1. android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:168)
      1 frame
    5. Android Platform
      ActivityThread.performResumeActivity
      1. android.app.Activity.performResume(Activity.java:6362)
      2. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3336)
      2 frames