java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportan

FATAL EXCEPTION: main
                                                         Process: mo.com.mo, PID: 2982
                                                         java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
                                                             at android.widget.AbsListView.obtainView(AbsListView.java:2363)
                                                             at android.widget.ListView.makeAndAddView(ListView.java:1864)
                                                             at android.widget.ListView.fillDown(ListView.java:698)
                                                             at android.widget.ListView.fillFromTop(ListView.java:759)
                                                             at android.widget.ListView.layoutChildren(ListView.java:1673)
                                                             at android.widget.AbsListView.onLayout(AbsListView.java:2151)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                             at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                             at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                             at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                             at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                             at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                             at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                             at android.view.View.layout(View.java:15671)
                                                             at android.view.ViewGroup.layout(ViewGroup.java:5038)
                                                             at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086)
                                                             at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1843)
                                                             at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
                                                             at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5891)
                                                             at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
                                                             at android.view.Choreographer.doCallbacks(Choreographer.java:580)
                                                             at android.view.Choreographer.doFrame(Choreographer.java:550)
                                                             at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
                                                             at android.os.Handler.handleCallback(Handler.java:739)
                                                             at android.os.Handler.dispatchMessage(Handler.java:95)
                                                             at android.os.Looper.loop(Looper.java:135)
                                                             at android.app.ActivityThread.main(ActivityThread.java:5254)
                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                             at java.lang.reflect.Method.invoke(Method.java:372)
                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

listView适配器里的getView方法return的view为空了,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值