You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--------- beginning of crash
05-11 08:21:30.296 21460 21460 E AndroidRuntime: FATAL EXCEPTION: main
05-11 08:21:30.296 21460 21460 E AndroidRuntime: Process: io.skygear.chatexample, PID: 21460
05-11 08:21:30.296 21460 21460 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.support.v7.app.AlertDialog.resolveDialogTheme(AlertDialog.java:114)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.support.v7.app.AlertDialog$Builder.(AlertDialog.java:294)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.plugins.chat.ui.ConversationFragment$deleteMessageFromServer$$inlined$let$lambda$1.onFail(ConversationFragment.kt:830)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.plugins.chat.ChatContainer$13.onLambdaFail(ChatContainer.java:970)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.skygear.LambdaResponseHandler.onFail(LambdaResponseHandler.java:47)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.skygear.Request.onErrorResponse(Request.java:135)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.volley.Request.deliverError(Request.java:564)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:101)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
The text was updated successfully, but these errors were encountered:
Expected behavior
Delete the message in the group section and log back into it.
Actual behavior
The application suddenly stopped, after I successfully deleted the message in the group section, then tries to reenter the group.
How to reproduce
Install the latest version of "Sky gear chat demo" app and open it and run the app.
Once you have successfully logged in, you must create a group conversation.
You should then try to send some messages in the group, then delete the messages that have been sent.
Then you have to exit the group, then go back into it.
You will find the problem as I have explained, the application suddenly stopped.
Browser: Samsung Galaxy S6 edge
Operating system: Nougat 7.0
App version: 1.4
Recording Of The Bug
https://youtu.be/kMEvvZI75O4
Logcat
Downloads here
--------- beginning of crash
05-11 08:21:30.296 21460 21460 E AndroidRuntime: FATAL EXCEPTION: main
05-11 08:21:30.296 21460 21460 E AndroidRuntime: Process: io.skygear.chatexample, PID: 21460
05-11 08:21:30.296 21460 21460 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.support.v7.app.AlertDialog.resolveDialogTheme(AlertDialog.java:114)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.support.v7.app.AlertDialog$Builder.(AlertDialog.java:294)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.plugins.chat.ui.ConversationFragment$deleteMessageFromServer$$inlined$let$lambda$1.onFail(ConversationFragment.kt:830)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.plugins.chat.ChatContainer$13.onLambdaFail(ChatContainer.java:970)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.skygear.LambdaResponseHandler.onFail(LambdaResponseHandler.java:47)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at io.skygear.skygear.Request.onErrorResponse(Request.java:135)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.volley.Request.deliverError(Request.java:564)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:101)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
05-11 08:21:30.296 21460 21460 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
The text was updated successfully, but these errors were encountered: