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

在fragment生命周期onActivityCreated中发生null pointer exception #144

Open
ZesenWang opened this issue Mar 12, 2018 · 0 comments
Open

Comments

@ZesenWang
Copy link

ZesenWang commented Mar 12, 2018

@OverRide
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mSwipeToLoadLayout.post(new Runnable() {
@OverRide
public void run() {
// 上面调用mSwipeToLoadLayout正常,下面这行代码发生空指针异常
mSwipeToLoadLayout.setRefreshing(true);
}
});
}

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

1 participant