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 issues loading fail #1164

Merged
merged 1 commit into from
Mar 1, 2018
Merged

Conversation

plweegie
Copy link
Contributor

I'm not sure whether that relates to #1100 or not, the description there was not clear enough.

This is something that I've discovered myself, com.github.pockethub.android.ui.issue.IssueFragment was showing an error and an empty list due to null arguments being passed somewhere along the Rx workflow in refreshIssue(). This has now been fixed.

@Meisolsson
Copy link
Contributor

Well it's probably better if we just don't pass null. I think the best fix here is to figure out why we passed null to it in the first place.

Looking at it we could probably just pass an empty collection to as events instead of the null we are passing now. Regaring the issue being null that's more or a problem which I don't understand. Ther should be no way for an issue to be null in this case from what I know.

@plweegie
Copy link
Contributor Author

There was indeed a call when we passed null as events to FullIssue. That was the only parameter causing problems. The fix will allow us to keep non-nullability in the FullIssue constructor.

@Meisolsson Meisolsson merged commit 8e5b7b5 into pockethub:master Mar 1, 2018
@plweegie plweegie deleted the issue_load_fail branch March 1, 2018 15:57
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.

2 participants