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

Shuffle button error after deleting video #6558

Open
3 tasks done
Notesure opened this issue Sep 28, 2024 · 0 comments
Open
3 tasks done

Shuffle button error after deleting video #6558

Notesure opened this issue Sep 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Notesure
Copy link

Notesure commented Sep 28, 2024

Steps to reproduce

  1. Delete the last video in the playlist
  2. Error when clicking shuffle button

Expected behavior

It can be annoying if accidentally touch the button. This is what happened at the moment

Actual behavior

XRecorder_28092024_200358.mp4

LibreTube version

0.25.2 (57)

Android version

Misc

Other details

java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:221)
at com.github.libretube.ui.fragments.PlaylistFragment$fetchPlaylist$1.invokeSuspend$lambda$7(PlaylistFragment.kt:256)
at com.github.libretube.ui.fragments.PlaylistFragment$fetchPlaylist$1.$r8$lambda$_hxFgAIhfI0eRI5JOWYxBe6Q4Ck(Unknown Source:0)
at com.github.libretube.ui.fragments.PlaylistFragment$fetchPlaylist$1$$ExternalSyntheticLambda4.onClick(D8$$SyntheticClass:0)
at android.view.View.performClick(View.java:7792)
at android.widget.TextView.performClick(TextView.java:16112)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1218)
at android.view.View.performClickInternal(View.java:7769)
at android.view.View.access$3800(View.java:910)
at android.view.View$PerformClick.run(View.java:30218)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@Notesure Notesure added the bug Something isn't working label Sep 28, 2024
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

No branches or pull requests

1 participant