java.lang.NullPointerException

Stack Overflow | MatrixMama | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.example.sandeku7.roadwage.DrawerItemCustomAdapter.getView()
  2. com.example.sandeku7
    DrawerItemCustomAdapter.getView
    1. com.example.sandeku7.roadwage.DrawerItemCustomAdapter.getView(DrawerItemCustomAdapter.java:43)
    1 frame
  3. Android Platform
    ViewGroup.layout
    1. android.widget.AbsListView.obtainView(AbsListView.java:2257)
    2. android.widget.ListView.makeAndAddView(ListView.java:1790)
    3. android.widget.ListView.fillDown(ListView.java:691)
    4. android.widget.ListView.fillFromTop(ListView.java:752)
    5. android.widget.ListView.layoutChildren(ListView.java:1630)
    6. android.widget.AbsListView.onLayout(AbsListView.java:2089)
    7. android.view.View.layout(View.java:14828)
    8. android.view.ViewGroup.layout(ViewGroup.java:4631)
    8 frames
  4. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1211)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:14828)
    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:14828)
    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:14828)
    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:14828)
    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:14828)
    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:14828)
    24. android.view.ViewGroup.layout(ViewGroup.java:4631)
    25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2026)
    26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1783)
    27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1039)
    28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5648)
    29. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    30. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    31. android.view.Choreographer.doFrame(Choreographer.java:544)
    32. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    33. android.os.Handler.handleCallback(Handler.java:733)
    34. android.os.Handler.dispatchMessage(Handler.java:95)
    35. android.os.Looper.loop(Looper.java:136)
    36. android.app.ActivityThread.main(ActivityThread.java:5052)
    36 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame