集成IMUI实现聊天列表时,相关module出现空指针

imui
jmessage
android
标签: #<Tag:0x00007f213c09da58> #<Tag:0x00007f213c09d8c8> #<Tag:0x00007f213c09d788>

(穿过空的声音) #1
2019-02-22 19:46:12.188 15999-15999/cn.edu.uestc.meet_on_the_road_of_uestc E/CrashReport: java.lang.NullPointerException: Attempt to read from field 'int cn.jiguang.imui.messages.MsgListAdapter$HoldersConfig.mSendTxtLayout' on a null object reference
        at cn.jiguang.imui.messages.MsgListAdapter$HoldersConfig.access$000(MsgListAdapter.java:689)
        at cn.jiguang.imui.messages.MsgListAdapter.onCreateViewHolder(MsgListAdapter.java:129)
        at cn.jiguang.imui.messages.MsgListAdapter.onCreateViewHolder(MsgListAdapter.java:26)
        at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6685)
        at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5869)
        at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752)
        at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748)
        at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232)
        at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1559)
        at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519)
        at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614)
        at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3812)
        at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3529)
        at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4082)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1842)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1686)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1595)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1842)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1686)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1595)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1842)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1686)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1595)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at com.android.internal.policy.DecorView.onLayout(DecorView.java:880)
        at android.view.View.layout(View.java:20964)
        at android.view.ViewGroup.layout(ViewGroup.java:6276)
        at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3024)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2532)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1624)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7926)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1079)
        at android.view.Choreographer.doCallbacks(Choreographer.java:885)
        at android.view.Choreographer.doFrame(Choreographer.java:809)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1065)
        at android.os.Handler.handleCallback(Handler.java:891)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:207)
        at android.app.ActivityThread.main(ActivityThread.java:7470)
    	at java.lang.reflect.Method.in

在集成imui时组件出现空指针错误


(Josh Lipan) #2