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

Fixing #236 which did not expect null from DownloadManager.query() #314

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

mark-plukkido
Copy link

Please note: I wasn't able to find contribution guidelines for PRs, so PR is against master as the issue-236 branch is quite stale.

This is a proposed fix to issue #236 which was due to a missing null check in onReceive() where DownloadManager.query() can return null, resulting in NullPointerException in some rare cases.

Copy link

@Dimon70007 Dimon70007 left a comment

Choose a reason for hiding this comment

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

It looks good. how have you tested it?

@mark-plukkido
Copy link
Author

Code was deployed in a live application. I tried to update the test cases and run those, but it seemed like a longer effort and had to abandon it.

@Dimon70007
Copy link

Oh. There is no tests in this library.
@Traviskn Could you approve this PR ?

@Dimon70007
Copy link

oh no. #236 - is because of downloading large files. this fix did not helped me.

@Traviskn
Copy link

If this is working in a live application I am comfortable with merging, thanks for your PR!

@Traviskn Traviskn merged commit 9a10735 into joltup:master Sep 26, 2019
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.

5 participants