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

[bug] NPE in DiscoveryFragment #241

Merged
merged 2 commits into from
Apr 23, 2018
Merged

[bug] NPE in DiscoveryFragment #241

merged 2 commits into from
Apr 23, 2018

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Apr 23, 2018

what

We have a few NullPointerExceptions because we attempt to access the ViewModel after the fragment is detached.

how

Now we check if the ViewModel is null.

bug

https://rink.hockeyapp.net/manage/apps/239014/app_versions/51/crash_reasons/215537957?type=overview

@eoji eoji requested a review from Scollaco April 23, 2018 18:16
Copy link
Contributor

@Scollaco Scollaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@eoji eoji merged commit df47780 into master Apr 23, 2018
@eoji eoji deleted the disco-crash branch April 23, 2018 18:31
@eoji
Copy link
Contributor Author

eoji commented Apr 24, 2018

DiscoveryFragment crash

Rcureton pushed a commit that referenced this pull request Jul 31, 2018
* attempting to fix bug where the discoveryfragment.viewmodel is null
* just checking if viewmodel is null vs ondetached because that only gets called when .detach is called
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.

None yet

2 participants