Accelerator Text Chat Android provides functionality you can add to your OpenTok applications that enables users to exchange text messages between mobile or browser-based devices.
D/OTAcceleratorSession: internalSendSignal: text-chat
D/OTAcceleratorSession: Dispatching signal: text-chat with: {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979}
dispatchSignal: No global listeners registered for: text-chat
Starting thread to process: text-chat : {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979}
D/OTAcceleratorSession: Dispatching signal: text-chat : {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979} on thread: 6709
I/text-chat-message: status: SENT_MESSAGE
D/Fragment: onNewSentMessage
I/VideoChatActivity: New sent message
I/Fragment: New message High is ready to be added.
D/OTAcceleratorSession: Dispatching signal: msg with: sadas
D/OTAcceleratorSession: dispatchSignal: No global listeners registered for: msg
dispatchSignal: No listeners registered for: msg
Reproducible in the demo project? (Yes/No): (not tried)
Related issues:
Bug report
Getting a crash report from Crashlytics
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
Expected behavior
Open text chat and use normally
Actual behavior
Crash
Steps to reproduce
unk. but code does not null-check the getContext() call which can return null in certain situations.
Crash log? Screenshots? Videos? Sample project?
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at com.tokbox.android.accpack.textchat.TextChatFragment.init(TextChatFragment.java:345)
at net.theretrocompany.android.retrobeauty.ConsultationSession$3.onConnected(ConsultationSession.java:516)
at net.theretrocompany.android.retrobeauty.ConsultationSession$3.onConnected(ConsultationSession.java:502)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener$2.run(PausableBasicListener.java:62)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener$1.run(PausableBasicListener.java:48)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener.runUIListenerTask(PausableBasicListener.java:53)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener.onConnected(PausableBasicListener.java:59)
at com.tokbox.android.otsdkwrapper.wrapper.OTWrapper$1.onConnected(OTWrapper.java:1074)
at com.tokbox.android.otsdkwrapper.wrapper.OTAcceleratorSession.onConnected(OTAcceleratorSession.java:312)
at com.opentok.android.Session$3.run(Session.java:1461)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6688)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)