java.lang.NullPointerException

Stack Overflow | Deepa | 4 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.rvsj987.simplegrocerylist.MyRecyclerAdapter.onBindViewHolder()
    2. com.example.rvsj987
      MyRecyclerAdapter.onBindViewHolder
      1. com.example.rvsj987.simplegrocerylist.MyRecyclerAdapter.onBindViewHolder(MyRecyclerAdapter.java:46)
      2. com.example.rvsj987.simplegrocerylist.MyRecyclerAdapter.onBindViewHolder(MyRecyclerAdapter.java:19)
      2 frames
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5768)
      2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5801)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5037)
      4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
      5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
      6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
      7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
      8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
      9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
      10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
      11. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
      11 frames
    4. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:14817)
      2. android.view.ViewGroup.layout(ViewGroup.java:4631)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      5. android.view.View.layout(View.java:14817)
      6. android.view.ViewGroup.layout(ViewGroup.java:4631)
      6 frames
    5. Android Support v4
      ViewPager.onLayout
      1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1761)
      1 frame
    6. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:14817)
      2. android.view.ViewGroup.layout(ViewGroup.java:4631)
      2 frames
    7. android.support.design
      CoordinatorLayout.onLayout
      1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:131)
      2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
      3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1319)
      4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:817)
      4 frames
    8. Android Platform
      Choreographer.doCallbacks
      1. android.view.View.layout(View.java:14817)
      2. android.view.ViewGroup.layout(ViewGroup.java:4631)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      5. android.view.View.layout(View.java:14817)
      6. android.view.ViewGroup.layout(ViewGroup.java:4631)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
      10. android.view.View.layout(View.java:14817)
      11. android.view.ViewGroup.layout(ViewGroup.java:4631)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      14. android.view.View.layout(View.java:14817)
      15. android.view.ViewGroup.layout(ViewGroup.java:4631)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
      19. android.view.View.layout(View.java:14817)
      20. android.view.ViewGroup.layout(ViewGroup.java:4631)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      23. android.view.View.layout(View.java:14817)
      24. android.view.ViewGroup.layout(ViewGroup.java:4631)
      25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
      26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
      27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
      28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
      29. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
      30. android.view.Choreographer.doCallbacks(Choreographer.java:574)
      30 frames