Crash when stopping stream playback while loading
Description
When playing a youtube stream, it while require time to load. While loading, the mini audio player will open, before transitioning to the video player once it has loaded.
I was only able to get this state once, but while the stream was loading, I stopped it by doing a long press on the pause button of the mini player which crashed the app.
2023-09-12 11:25:27.576 30110-1121 AndroidRuntime org.videolan.vlc.debug E FATAL EXCEPTION: DefaultDispatcher-worker-5 @coroutine#922
Process: org.videolan.vlc.debug, PID: 30110
java.lang.NullPointerException: Attempt to invoke virtual method 'long org.videolan.medialibrary.interfaces.media.MediaWrapper.getId()' on a null object reference
at org.videolan.vlc.media.PlaylistManager$saveMediaMeta$1$1.invokeSuspend(PlaylistManager.kt:567)
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:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
Steps to reproduce
- Start a youtube stream
- return to the More view
- Long press pause on the mini player to stop loading the media
Context
App version
Master
Android version
13
Device model
App mode
Smartphone