Crashing after upgrading to 2.3.1,

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
       at com.cometchat.pro.core.CometChat.loginWithAuthTokenInternal(CometChat.java:5)
       at com.cometchat.pro.core.CometChat.access$1400(CometChat.java:1)
       at com.cometchat.pro.core.CometChat$161.onSuccess(CometChat.java:2)
       at com.cometchat.pro.core.CometChat$161.onSuccess(CometChat.java:1)
       at com.cometchat.pro.core.CometChat$75$2.run(CometChat.java:1)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:227)
       at android.app.ActivityThread.main(ActivityThread.java:7822)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)

More Crashes

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.cometchat.pro.core.Settings.isDenyFallbackToPolling()' on a null object reference
       at com.cometchat.pro.core.ConnectionController$1.onDisconnectionTimeReached(ConnectionController.java:4)
       at com.cometchat.pro.core.DisconnectionTimerTask.run(DisconnectionTimerTask.java:2)
       at java.util.TimerThread.mainLoop(Timer.java:562)
       at java.util.TimerThread.run(Timer.java:512)
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.cometchat.pro.models.CurrentUser.getAuthToken()' on a null object reference
       at com.cometchat.pro.core.CometChat.restart(CometChat.java:1)
       at com.cometchat.pro.core.CometChat$3.onSettingsUpdated(CometChat.java:2)
       at com.cometchat.pro.core.AnalyticsPingTimerTask$1.onResponse(AnalyticsPingTimerTask.java:2)
       at com.cometchat.pro.core.ApiConnection.handleApiResponse(ApiConnection.java:18)
       at com.cometchat.pro.core.ApiConnection.access$000(ApiConnection.java:1)
       at com.cometchat.pro.core.ApiConnection$3.onResponse(ApiConnection.java:2)
       at com.google.firebase.perf.network.InstrumentOkHttpEnqueueCallback.onResponse(InstrumentOkHttpEnqueueCallback.java:69)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:919)

Hello @happybitclass,

We are unable to reproduce these crashes at our end. Can you please provide us steps to reproduce the crash so that we can try it on our end and debug it? Also, can you please let us know if you were changing any extension setting or adding/removing any extension before the crash happened.

Warm Regards,

CometChat Pro
Mayur Bhandari

We also not able to reproduce at our end, but it is happening massively in production. We have recently upgrade and enabled extensions before the crash happened.