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

fix:Fragment.getActivity() NullPointerException #1172

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

jayyuz
Copy link
Contributor

@jayyuz jayyuz commented Apr 12, 2023

When a fragment is not attached or has already been detached, it needs to behave like Fragment.getActivity(), return null.

@tencent-adm
Copy link
Member

tencent-adm commented Apr 12, 2023

CLA assistant check
All committers have signed the CLA.

@jayyuz
Copy link
Contributor Author

jayyuz commented Apr 14, 2023

貌似是跑测试案例挂了

@shifujun shifujun linked an issue Apr 18, 2023 that may be closed by this pull request
@shifujun shifujun merged commit 9c80fa7 into Tencent:master Apr 18, 2023
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

Successfully merging this pull request may close these issues.

空指针风险
3 participants