Fix NPE in PreviewMediaFragment#4577
Merged
tobiasKaminsky merged 1 commit intoOct 2, 2019
Merged
Conversation
ezaquarii
force-pushed
the
ezaquarii/fix-npe-in-preview-media-fragment
branch
from
September 28, 2019 22:16
61a6385 to
c660ca7
Compare
Collaborator
Author
|
@tobiasKaminsky @AndyScherzinger |
Fragment can be detached before async task finishes. Detached fragment has no context and getString() fails with NPE. Fixes #4412 Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
ezaquarii
force-pushed
the
ezaquarii/fix-npe-in-preview-media-fragment
branch
from
September 28, 2019 22:41
c1b0aa9 to
488193a
Compare
Member
|
/backport to stable-3.8 |
AndyScherzinger
approved these changes
Oct 1, 2019
tobiasKaminsky
approved these changes
Oct 2, 2019
Member
|
Thanks for the finding! |
Collaborator
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11062.apk |
Collaborator
Codacy273Lint
SpotBugs (new)
SpotBugs (master)
|
Codecov Report
@@ Coverage Diff @@
## master #4577 +/- ##
==========================================
+ Coverage 16.99% 17.2% +0.2%
Complexity 3 3
==========================================
Files 365 375 +10
Lines 32093 33424 +1331
Branches 4519 4902 +383
==========================================
+ Hits 5454 5750 +296
- Misses 25748 26752 +1004
- Partials 891 922 +31
|
delete-merged-branch
Bot
deleted the
ezaquarii/fix-npe-in-preview-media-fragment
branch
October 2, 2019 07:02
|
backport to stable-3.8 in #4594 |
tobiasKaminsky
added a commit
that referenced
this pull request
Oct 3, 2019
59e1f7f Merge pull request #4357 from nextcloud/changeDroneOrder c9e9fe1 Merge pull request #4597 from nextcloud/buildAgain 7ebc88d make build run again 4f15e87 Merge pull request #4592 from nextcloud/parentCheck b204db0 Merge pull request #4577 from nextcloud/ezaquarii/fix-npe-in-preview-media-fragment 9876c49 Merge pull request #4415 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.0.1 9a580b3 Merge pull request #4591 from nextcloud/dependabot/gradle/org.mockito-mockito-core-3.1.0 f6e24eb if parent is null, then do a regular check, no early exit 0dfdc6a Bump mockito-core from 3.0.0 to 3.1.0 9133158 [tx-robot] updated from transifex 7d8474e daily dev 20191002
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fragment can be detached when async task finishes.
Detached fragment has no context and getString() fails with NPE.
Fixes #4582
Signed-off-by: Chris Narkiewicz hello@ezaquarii.com