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

进入一个界面然后开始网络请求(异步的),然后关闭界面,app闪退报 v can not be null这个错误,请问怎么解决啊 #71

Open
lwk865543773 opened this issue Dec 19, 2019 · 7 comments

Comments

@lwk865543773
Copy link

进入一个界面然后开始网络请求(异步的),然后关闭界面,app闪退报 v can not be null这个错误,请问怎么解决啊 能不能关闭当前界面的时候默认取消相关网络请求啊 怎么做啊 大神求教

@YanYanLun
Copy link

newP,你应该重写成getP了

@lwk865543773
Copy link
Author

newP,你应该重写成getP了

求教 怎么重写啊 我目前的解决方案是优化了网络请求框架,加了 compose(context.bindToLifecycle()) 绑定了生命周期

@YanYanLun
Copy link

activity 关联present,重写newP方法,

@lwk865543773
Copy link
Author

activity 关联present,重写newP方法,

本来就已经关联了呀 以及重写了这个newP()方法了呀 能不能详情点呀 求QQ号请教

@YanYanLun
Copy link

1754533217

@WYeYang
Copy link

WYeYang commented Apr 10, 2020

P里面的activity被回收了,再get就报错

@MisterBowie
Copy link

可以在获取导数据的时候,用hasV()判断下!

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

4 participants