-
Notifications
You must be signed in to change notification settings - Fork 394
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
unregister 时有空指针问题 #19
Comments
07-02 20:10:28.130 E/CrashReport(26443): android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3521) |
@jiantao88 是最新版本对吗 ?你是在哪个时机注销的? |
是最新的版本,是在onDestory方法里 |
确实可能会有这个问题,弱引用持有的订阅者,在没有判断不为null的情况下直接比较了 |
@wurensen 已经看到这个问题,周末处理一下。 |
已经处理了,各位可以看看。当引用对象为空时该Subscription也会被移除;不为空时则会跟传递进来的对象进行判等,如果相等也移除。 |
@jiantao88 @wurensen 你们都在产品中用了么 ? |
我想知道能否去掉unregister这一步,能否实现自动取消订阅. |
@andrewlu1 可以考虑在onResume和onPause时刻去注册和注销 |
移除注册事件时偶尔会发生空指针现象
The text was updated successfully, but these errors were encountered: