-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to run the app #50
Comments
Hi, Were you able to get this to work? Does your Chat app connect to your token server successfully? Thanks! |
I'm going to close this issue out, but please reopen it if you have some feedback. Thank you! |
This issue still persists. Please help to run. 2021-01-09 22:01:19.650 12185-12185/com.guftgu E/AndroidRuntime: FATAL EXCEPTION: main |
Am also getting a similar error @jefflinwood. The app is able to connect to the server and retrieve the token successfully. It crashes shortly after. |
@LennyDennis are you getting a null pointer exception when it tries to access the ChatClient's channels as well? Thanks! |
@jefflinwood Yes. Here is the error. Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.twilio.chat.Channels com.twilio.chat.ChatClient.getChannels()' on a null object reference |
Hi, I think this was a race condition between setting the chat client as a member variable in the Chat Manager and setting the listener - I reversed the order of those two in which is merged into master. Thanks for bringing this up, everyone! |
Thanks ! |
I had a similar issue when using Flutter's https://pub.dev/packages/twilio_programmable_chat The following series of calls caused native Android crash:
I had to INSERT a useless delay to resolve this issue.
the error was: com.twilio.chat.ListenerException: Exception thrown by a listener. Your application might have a problem in listener implementation. Listeners must never throw uncaught exceptions. See 'Caused by:' below for more details. Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.twilio.chat.Messages.getLastMessages(int, com.twilio.chat.CallbackListener)' on a null object reference |
The text was updated successfully, but these errors were encountered: