java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wenming.weiswift/com.wenming.weiswift.ui.login.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView.getChildCount()' on a null object reference

GitHub | wenmingvs | 4 months ago
  1. 0

    【CrashLog】 WeiSwift 2016-08-16 11:01:14:21

    GitHub | 4 months ago | wenmingvs
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wenming.weiswift/com.wenming.weiswift.ui.login.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView.getChildCount()' on a null object reference
  2. 0

    scrolling down through OBS.

    GitHub | 1 year ago | door43app
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.scrollToPosition(int)' on a null object reference
  3. 0

    Recent Threads - Xamarin Forums

    rssing.com | 8 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.internal.widget.ContentFrameLayout.setId(int)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RecyclerView inside CardView inside RecyclerView throwing null pointer on findViewById

    Stack Overflow | 3 weeks ago | Daniel Einars
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v7.widget.RecyclerView.findViewById(int)' on a null object reference
  6. 0

    NullPointerException in MainActivity

    GitHub | 1 year ago | Harlber
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.smoothScrollToPosition(int)' 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 'int android.support.v7.widget.RecyclerView.getChildCount()' on a null object reference

      at com.wenming.weiswift.ui.login.activity.MainActivity.showHomeFragment()
    2. com.wenming.weiswift
      MainActivity.onCreate
      1. com.wenming.weiswift.ui.login.activity.MainActivity.showHomeFragment(MainActivity.java:254)
      2. com.wenming.weiswift.ui.login.activity.MainActivity.switchToFragment(MainActivity.java:216)
      3. com.wenming.weiswift.ui.login.activity.MainActivity.restoreFragment(MainActivity.java:148)
      4. com.wenming.weiswift.ui.login.activity.MainActivity.onCreate(MainActivity.java:125)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6876)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
      5. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5382)
      6. android.app.ActivityThread.access$1200(ActivityThread.java:221)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1800)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:158)
      10. android.app.ActivityThread.main(ActivityThread.java:7224)
      10 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames
    6. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)
      1 frame