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 mediastore file size in SaveExternalFilesActivity #866

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

sirambd
Copy link
Member

@sirambd sirambd commented Aug 8, 2022

Sentry link

java.lang.IllegalArgumentException: column '_size' does not exist. Available columns: [_id, _data]
    at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:351)
    at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:91)
    at com.infomaniak.drive.utils.SyncUtils.getFileSize(SyncUtils.kt:55)
    at com.infomaniak.drive.ui.SaveExternalFilesActivity.store(SaveExternalFilesActivity.kt:407)
    at com.infomaniak.drive.ui.SaveExternalFilesActivity.storeFiles(SaveExternalFilesActivity.kt:352)
    at com.infomaniak.drive.ui.SaveExternalFilesActivity.access$storeFiles(SaveExternalFilesActivity.kt:63)
    at com.infomaniak.drive.ui.SaveExternalFilesActivity$setupSaveButton$1$1$1$1.invokeSuspend(SaveExternalFilesActivity.kt:247)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

@sirambd sirambd added the bug Something isn't working label Aug 8, 2022
@sirambd sirambd added this to the 4.2.2 milestone Aug 8, 2022
@sirambd sirambd requested a review from a team as a code owner August 8, 2022 13:56
@sirambd sirambd self-assigned this Aug 8, 2022
@sirambd sirambd changed the title fix mediastore file size fix mediastore file size in SaveExternalFilesActivity Aug 8, 2022
@sonarcloud
Copy link

sonarcloud bot commented Aug 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JorisBodin JorisBodin merged commit ddeb170 into master Aug 8, 2022
@JorisBodin JorisBodin deleted the fix-save-external-files-get-size branch August 8, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants