jeasonlzy / ImagePicker

完全仿微信的图片选择,并且提供了多种图片加载接口,选择图片后可以旋转,可以裁剪成矩形或圆形,可以配置各种其他的参数
Apache License 2.0
4.29k stars 1.03k forks source link

java.lang.NullPointerException #203

Open Wing-Li opened 7 years ago

Wing-Li commented 7 years ago

华为 G7-TL00 Android 4.4.4,level 19 HuaWei/EMOTION armeabi-v7a

1 com.lzy.imagepicker.adapter.ImageRecyclerAdapter$ImageViewHolder.bind(ImageRecyclerAdapter.java:180)
2 com.lzy.imagepicker.adapter.ImageRecyclerAdapter.onBindViewHolder(ImageRecyclerAdapter.java:95)
3 android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6356)
4 android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6389)
5 android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5335)
6 android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5598)
7 android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5440)
8 android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5436)
9 android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2224)
10 android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)
11 android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1511)
12 android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:595)
13 android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
14 android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3583)
15 android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3312)
16 android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)
17 android.view.View.layout(View.java:14884)
18 android.view.ViewGroup.layout(ViewGroup.java:4651)
19 android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
20 android.view.View.layout(View.java:14884)
21 android.view.ViewGroup.layout(ViewGroup.java:4651)
22 android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
23 android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
24 android.widget.LinearLayout.onLayout(LinearLayout.java:1460)
25 android.view.View.layout(View.java:14884)
26 android.view.ViewGroup.layout(ViewGroup.java:4651)
27 android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
28 android.widget.FrameLayout.onLayout(FrameLayout.java:388)
29 android.view.View.layout(View.java:14884)
30 android.view.ViewGroup.layout(ViewGroup.java:4651)
31 android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
32 android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
33 android.widget.LinearLayout.onLayout(LinearLayout.java:1460)
34 android.view.View.layout(View.java:14884)
35 android.view.ViewGroup.layout(ViewGroup.java:4651)
36 android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
37 android.widget.FrameLayout.onLayout(FrameLayout.java:388)
38 android.view.View.layout(View.java:14884)
39 android.view.ViewGroup.layout(ViewGroup.java:4651)
40 android.widget.LinearLayout.setChildFrame(LinearLayout.java:1697)
41 android.widget.LinearLayout.layoutVertical(LinearLayout.java:1551)
42 android.widget.LinearLayout.onLayout(LinearLayout.java:1460)
43 android.view.View.layout(View.java:14884)
44 android.view.ViewGroup.layout(ViewGroup.java:4651)
45 android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
46 android.widget.FrameLayout.onLayout(FrameLayout.java:388)
47 android.view.View.layout(View.java:14884)
48 android.view.ViewGroup.layout(ViewGroup.java:4651)
49 android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2060)
50 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1814)
51 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1050)
52 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5934)
53 android.view.Choreographer$CallbackRecord.run(Choreographer.java:787)
54 android.view.Choreographer.doCallbacks(Choreographer.java:600)
55 android.view.Choreographer.doFrame(Choreographer.java:569)
56 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:773)
57 android.os.Handler.handleCallback(Handler.java:733)
58 android.os.Handler.dispatchMessage(Handler.java:95)
59 android.os.Looper.loop(Looper.java:136)
60 android.app.ActivityThread.main(ActivityThread.java:5336)
61 java.lang.reflect.Method.invokeNative(Native Method)
62 java.lang.reflect.Method.invoke(Method.java:515)
63 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:873)
64 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
65 dalvik.system.NativeStart.main(Native Method)
liwentao19881010 commented 7 years ago

我碰到同样的问题,求教怎么解决