Skip to content
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

sessionClient会报空指针 #89

Closed
wh5355 opened this issue Sep 11, 2017 · 1 comment
Closed

sessionClient会报空指针 #89

wh5355 opened this issue Sep 11, 2017 · 1 comment

Comments

@wh5355
Copy link

wh5355 commented Sep 11, 2017

我们通过日志发现,有大量的sessionClient会为null的情况,我们每次在加载页面的时候都会先去调用sonicSession.destroy();然后再创建session和client,可能是开始加载时候调用了sonicSession.destroy()引起的。

@vasdeveloper
Copy link
Collaborator

@wh5355 感谢反馈,根据您提供的场景反馈,在先调用destory后,确实存在一种sessionClient为空的场景:先调用destroy之后,sessionClient会设置为Null,如果此时主循环还存在sonic消息,则会导致该问题。

目前已经在dev分支修复了该问题。详细请参见 6d84ba8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants