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

Crashing in onPostExecute in AuthTask #5

Open
woodmicha opened this issue Jul 21, 2019 · 0 comments
Open

Crashing in onPostExecute in AuthTask #5

woodmicha opened this issue Jul 21, 2019 · 0 comments

Comments

@woodmicha
Copy link

Looks likes the Auth task is trying to leverage activity level variables and the activity is null. Crashes on this line:

OAuthFragment.this.getActivity().setProgressBarIndeterminateVisibility(false);

The cause is OAuthFragment.this.getActivity() returns null

Attempt to invoke virtual method 'void android.support.v4.app.FragmentActivity.setProgressBarIndeterminateVisibility(boolean)' on a null object reference

It doesn't happen often but I've seen it 4 times. Perhaps the user is closing the activity before the async tasks is done?

Any ideas?

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