java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setDrawingCacheBackgroundColor(int)' on a null object reference

segmentfault.com | 4 months ago
  1. 0

    android - Crash Log中没有有效信息时,如何分析错误? - SegmentFault

    segmentfault.com | 4 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setDrawingCacheBackgroundColor(int)' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString() | Treehouse Community

    teamtreehouse.com | 1 year ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' 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 'void android.view.View.setDrawingCacheBackgroundColor(int)' on a null object reference

    at android.widget.AbsListView.obtainView()
  2. Android Platform
    ViewGroup.layout
    1. android.widget.AbsListView.obtainView(AbsListView.java:2494)
    2. android.widget.ListView.makeAndAddView(ListView.java:1894)
    3. android.widget.ListView.fillDown(ListView.java:710)
    4. android.widget.ListView.fillSpecific(ListView.java:1372)
    5. android.widget.ListView.layoutChildren(ListView.java:1673)
    6. android.widget.AbsListView.onLayout(AbsListView.java:2227)
    7. android.view.View.layout(View.java:15912)
    8. android.view.ViewGroup.layout(ViewGroup.java:5108)
    9. android.widget.FrameLayout.layoutChildren(FrameLayout.java:633)
    10. android.widget.FrameLayout.onLayout(FrameLayout.java:568)
    11. android.view.View.layout(View.java:15912)
    12. android.view.ViewGroup.layout(ViewGroup.java:5108)
    13. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1195)
    14. android.view.View.layout(View.java:15912)
    15. android.view.ViewGroup.layout(ViewGroup.java:5108)
    15 frames
  3. Android Support v4
    ViewPager.onLayout
    1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1627)
    1 frame
  4. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15912)
    2. android.view.ViewGroup.layout(ViewGroup.java:5108)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1195)
    4. android.view.View.layout(View.java:15912)
    5. android.view.ViewGroup.layout(ViewGroup.java:5108)
    6. android.widget.FrameLayout.layoutChildren(FrameLayout.java:633)
    7. android.widget.FrameLayout.onLayout(FrameLayout.java:568)
    8. android.view.View.layout(View.java:15912)
    9. android.view.ViewGroup.layout(ViewGroup.java:5108)
    10. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1195)
    11. android.view.View.layout(View.java:15912)
    12. android.view.ViewGroup.layout(ViewGroup.java:5108)
    12 frames
  5. Android Support v4
    ViewPager.onLayout
    1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1627)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:15912)
    2. android.view.ViewGroup.layout(ViewGroup.java:5108)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1195)
    4. android.view.View.layout(View.java:15912)
    5. android.view.ViewGroup.layout(ViewGroup.java:5108)
    6. android.widget.FrameLayout.layoutChildren(FrameLayout.java:633)
    7. android.widget.FrameLayout.onLayout(FrameLayout.java:568)
    8. android.view.View.layout(View.java:15912)
    9. android.view.ViewGroup.layout(ViewGroup.java:5108)
    10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
    11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
    12. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
    13. android.view.View.layout(View.java:15912)
    14. android.view.ViewGroup.layout(ViewGroup.java:5108)
    15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:633)
    16. android.widget.FrameLayout.onLayout(FrameLayout.java:568)
    17. android.view.View.layout(View.java:15912)
    18. android.view.ViewGroup.layout(ViewGroup.java:5108)
    19. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2460)
    20. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2152)
    21. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1277)
    22. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6483)
    23. android.view.Choreographer$CallbackRecord.run(Choreographer.java:802)
    24. android.view.Choreographer.doCallbacks(Choreographer.java:605)
    25. android.view.Choreographer.doFrame(Choreographer.java:574)
    26. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:788)
    27. android.os.Handler.handleCallback(Handler.java:815)
    28. android.os.Handler.dispatchMessage(Handler.java:104)
    29. android.os.Looper.loop(Looper.java:194)
    30. android.app.ActivityThread.main(ActivityThread.java:5549)
    30 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
    2 frames