Crash NullPointerException Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference



已于 2023年2月28日 发布

Hi Team, 

I am raising this here since it's already 2 weeks on the github issues but no updates. 

We capture quite a lot of crashes on sentry which showed an exception with the following stack trace:

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference
    at io.smooch.ui.fragment.ConversationFragment.setServerBanner
    at io.smooch.ui.fragment.ConversationFragment.updateConnectionState
    at io.smooch.ui.fragment.ConversationFragment.onSmoochConnectionStatusChanged
    at io.smooch.ui.ConversationActivity.onSmoochConnectionStatusChanged
    at io.smooch.core.f.onSmoochConnectionStatusChanged
    at io.smooch.core.service.SmoochService$w0.run
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:246)
    at android.app.ActivityThread.main(ActivityThread.java:8414)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

most probably triggered on the following lines, which on this part it didn't have any checking whether the Fragment is attached or not.


We already post the issues on github issue, here is the link.
https://github.com/zendesk/sunshine-conversations-android/issues/178

 

Hoping to hear some good news for it.
Thanks.


0

0

0 条评论

登录再写评论。

找不到所需的内容?

新建帖子