alibaba / vlayout

Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layouts in the same recyclerview.
http://tangram.pingguohe.net/
MIT License
10.8k stars 1.79k forks source link

坚果 pro 3上闪退 #478

Open MarkHan1213 opened 4 years ago

MarkHan1213 commented 4 years ago

11-08 16:05:00.967 8376 8376 E AndroidRuntime: FATAL EXCEPTION: main11-08 16:05:00.967 8376 8376 E AndroidRuntime: Process: sz.szsmk.citizencard, PID: 837611-08 16:05:00.967 8376 8376 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewTreeObserver android.support.v7.widget.RecyclerView.getViewTreeObserver()' on a null object reference11-08 16:05:00.967 8376 8376 E AndroidRuntime: at sz.szsmk.citizencard.ui.adapter.AppHomeModule2Adapter.loadItemData(AppHomeModule2Adapter.java:167)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at sz.szsmk.citizencard.ui.adapter.AppHomeModule2Adapter.onBindViewHolder(AppHomeModule2Adapter.java:74)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at sz.szsmk.citizencard.ui.adapter.AppHomeModule2Adapter.onBindViewHolder(AppHomeModule2Adapter.java:31)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6356)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.DelegateAdapter.onBindViewHolder(DelegateAdapter.java:145)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6389)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5335)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5598)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5440)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5436)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.ExposeLinearLayoutManagerEx$LayoutState.next(ExposeLinearLayoutManagerEx.java:1629)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.VirtualLayoutManager$LayoutStateWrapper.next(VirtualLayoutManager.java:1043)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.layout.BaseLayoutHelper.nextView(BaseLayoutHelper.java:116)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.layout.LinearLayoutHelper.layoutViews(LinearLayoutHelper.java:88)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.layout.BaseLayoutHelper.doLayout(BaseLayoutHelper.java:318)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.VirtualLayoutManager.layoutChunk(VirtualLayoutManager.java:639)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.ExposeLinearLayoutManagerEx.fill(ExposeLinearLayoutManagerEx.java:1162)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.ExposeLinearLayoutManagerEx.onLayoutChildren(ExposeLinearLayoutManagerEx.java:365)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.alibaba.android.vlayout.VirtualLayoutManager.onLayoutChildren(VirtualLayoutManager.java:463)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3583)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3312)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:636)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:327)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:327)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:327)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:327)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:327)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.android.internal.policy.DecorView.onLayout(DecorView.java:1057)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.View.layout(View.java:21147)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6310)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3179)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2685)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1773)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8200)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1034)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:827)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:762)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1020)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.os.Looper.loop(Looper.java:196)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7281)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)11-08 16:05:00.967 8376 8376 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)11-08 16:05:00.985 1386 1486 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendStickyBroadcast:1294 com.android.server.LocationManagerService.broadcastUpdatesChanged:3809 com.android.server.LocationManagerService.access$2500:131 打开就闪退