java.lang.NullPointerException

Stack Overflow | A.asha | 5 months ago
  1. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at com.example.anilkumar.json.MainActivity$Rvadapter.getItemCount()
    2. com.example.anilkumar
      MainActivity$Rvadapter.getItemCount
      1. com.example.anilkumar.json.MainActivity$Rvadapter.getItemCount(MainActivity.java:154)
      1 frame
    3. Android v7
      RecyclerView.onMeasure
      1. android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3170)
      2. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2782)
      2 frames
    4. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:12723)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:660)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
      6. android.view.View.measure(View.java:12723)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
      8. android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
      9. android.view.View.measure(View.java:12723)
      10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
      11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1369)
      12. android.widget.LinearLayout.measureVertical(LinearLayout.java:660)
      13. android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
      14. android.view.View.measure(View.java:12723)
      15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
      16. android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
      16 frames
    5. Android
      PhoneWindow$DecorView.onMeasure
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2092)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.measure(View.java:12723)
      2. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1064)
      3. android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:137)
      6. android.app.ActivityThread.main(ActivityThread.java:4424)
      6 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames