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

[CRASH on Android Q] When media files in Internal storage #3

Closed
monsterbrain opened this issue Feb 11, 2020 · 5 comments
Closed

[CRASH on Android Q] When media files in Internal storage #3

monsterbrain opened this issue Feb 11, 2020 · 5 comments
Assignees
Labels
bug Something isn't working Fixed

Comments

@monsterbrain
Copy link
Contributor

When there exists images in the root folder of the internal storage, the library crashes on start. (some kind of null exception). When the images are removed, it works fine. Occurred in pIxel 3 device.

@hani-momanii
Copy link
Member

@monsterbrain Can you add the crash stack trace?

@hani-momanii hani-momanii self-assigned this Feb 11, 2020
@monsterbrain
Copy link
Contributor Author

Sorry for the late reply ...

java.lang.IllegalStateException: albumCursor.getString(al…dex(DISPLAY_NAME_COLUMN)) must not be null
at com.opensooq.supernova.gligar.dataSource.ImagesDataSource$loadAlbums$1.invoke(ImagesDataSource.kt:40)
at com.opensooq.supernova.gligar.dataSource.ImagesDataSource$loadAlbums$1.invoke(ImagesDataSource.kt:22)
at com.opensooq.supernova.gligar.utils.ExtKt.doWhile(Ext.kt:26)
at com.opensooq.supernova.gligar.dataSource.ImagesDataSource.loadAlbums(ImagesDataSource.kt:38)
at com.opensooq.supernova.gligar.ui.PickerViewModel$getAlbums$2.invokeSuspend(PickerViewModel.kt:104)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:241)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:740)

@deepaktundwal
Copy link

I am also facing the issue in Android Q. @monsterbrain @monsterbrain any solution for this issue?

@monsterbrain
Copy link
Contributor Author

@deepaktundwal : One thing to solve it is to just do a null check for the album title reading DISPLAY_NAME_COLUMN query..

@hani-momanii
Copy link
Member

Fixed on v1.1.0.

@hani-momanii hani-momanii added bug Something isn't working Fixed labels Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed
Projects
None yet
Development

No branches or pull requests

3 participants