I am facing frequent issues in production for Chatfragments, please find the attached file
#0. Crashed: main
at com.zoho.livechat.android.ui.fragments.ChatFragment$1.onReceive + 456(ChatFragment.java:456)
at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts + 313(LocalBroadcastManager.java:313)
at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage + 121(LocalBroadcastManager.java:121)
at android.os.Handler.dispatchMessage + 106(Handler.java:106)
at android.os.Looper.loop + 193(Looper.java:193)
at android.app.ActivityThread.main + 6702(ActivityThread.java:6702)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main + 911(ZygoteInit.java:911)
--
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.zoho.livechat.android.ui.adapters.MessagesAdapter.getItemCount()' on a null object reference
at com.zoho.livechat.android.ui.fragments.ChatFragment$1.onReceive + 456(ChatFragment.java:456)
at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts + 313(LocalBroadcastManager.java:313)
at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage + 121(LocalBroadcastManager.java:121)
at android.os.Handler.dispatchMessage + 106(Handler.java:106)
at android.os.Looper.loop + 193(Looper.java:193)
at android.app.ActivityThread.main + 6702(ActivityThread.java:6702)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493)
Writer is a powerful online word processor, designed for collaborative work.