java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView.getChildCount()' on a null object reference

GitHub | wenmingvs | 5 months ago
  1. 0

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

    GitHub | 5 months ago | wenmingvs
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView.getChildCount()' on a null object reference
  2. 0
    Initialize the variable before calling a method on it.
  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
    Use 'dialog' to access views from custom_layout layout.
  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 '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