Crash on new message

Dear CometChat developers,

Today we’ve noticed a crash on simply receiving a message, when entering the conversation with that person. Here is the stacktrace:

2021-06-27 10:04:35.376 12738-12738/? E/MessageAdapter: getLastMessage: TextMessage{text=‘Jff’, id=674, muid=‘null’, sender=User{uid=‘60968dc6631e5d66bf637a72’, name=‘mihai traistaru’, avatar=‘null’, link=‘null’, role=‘default’, metadata=null, status=‘online’, statusMessage=‘null’, lastActiveAt=1624776958, hasBlockedMe=false, blockedByMe=false, tags=null}, receiverUid=‘60965c7122780c6f856f4522’, type=‘text’, receiverType=‘user’, category=‘message’, sentAt=1624777438, deliveredAt=1624777438722, readAt=1624777445989, metadata={"@injected":{“extensions”:{“link-preview”:{“links”:[]}}}}, readByMeAt=0, deliveredToMeAt=0, deletedAt=0, editedAt=0, deletedBy=‘null’, editedBy=‘null’, updatedAt=1624777438}
2021-06-27 10:04:35.425 12738-12738/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.msig.animalcenter, PID: 12738
java.lang.IllegalStateException: Not initialized yet
at androidx.core.util.Preconditions.checkState(SourceFile:1)
at androidx.emoji.text.EmojiCompat.process(SourceFile:5)
at com.cometchat.pro.uikit.ui_components.messages.message_list.MessageAdapter.setTextData(SourceFile:80)
at com.cometchat.pro.uikit.ui_components.messages.message_list.MessageAdapter.onBindViewHolder(SourceFile:44)
at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(SourceFile:1)
at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(SourceFile:8)
at androidx.recyclerview.widget.RecyclerView$Recycler.h(SourceFile:7)
at androidx.recyclerview.widget.RecyclerView$Recycler.i(SourceFile:135)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:1)
at androidx.recyclerview.widget.LinearLayoutManager$b.c(SourceFile:8)
at androidx.recyclerview.widget.LinearLayoutManager.D(SourceFile:1)
at androidx.recyclerview.widget.LinearLayoutManager.t(SourceFile:12)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(SourceFile:116)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(SourceFile:12)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(SourceFile:9)
at androidx.recyclerview.widget.RecyclerView.onLayout(SourceFile:2)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:761)
at android.view.View.layout(View.java:19659)
at android.view.ViewGroup.layout(ViewGroup.java:6075)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2496)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2212)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:723)
at android.view.Choreographer.doFrame(Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
2021-06-27 10:04:35.425 12738-12738/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
2021-06-27 10:04:35.546 1046-2038/? E/ResourcesManager: failed to add asset path /data/app/com.google.android.gms-ixM5fR0I64ZvR7b24Ci3Cg==/base.apk

We used a Nexus 6P with Android 8.1. We have a CometChat Pro subscription and use the latest Android SDK.

Best regards,
Animal Central Dev Team