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 NPE in UploadService #10388

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Conversation

malinajirka
Copy link
Contributor

Fixes #10001

Fixes NPE in UploadService. We check that sInstance field is not null. However, before we use that field onDestroy method which clears the field might be have been called by the system. This PR fixes the issue by temporarily storing the sInstance into a local field.

To test:
This issue isn't easy to reproduce. I'd suggest just carefully reviewing the code.

Update release notes:

  • The changes are too minor.

Copy link
Contributor

@mkevins mkevins left a comment

Choose a reason for hiding this comment

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

Nice work @malinajirka !

@malinajirka malinajirka merged commit 047cd21 into develop Aug 20, 2019
@malinajirka malinajirka deleted the issue/10001-fix-npe-in-upload-service branch August 20, 2019 15:06
@malinajirka malinajirka modified the milestones: 13.2, 13.3 Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants