-
-
Couldn't load subscription status.
- Fork 3.3k
Description
Checklist
- I am using the latest version - 0.20.2
- I checked, but didn't find any duplicates (open OR closed) of this issue in the repo.
- I have read the contribution guidelines given at https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md.
- This issue contains only one bug. I will open one issue for every bug report I want to file.
Steps to reproduce the bug
I'm not sure it can be reproduced. It happened when deleting a video from a list. After restarting NewPipe I've been able to delete this video and others.
Actual behaviour
The app creashed
Expected behavior
The video should be deleted from the list.
Screenshots/Screen recordings
Logs
Exception
- User Action: ui error
- Request: App crash, UI failure
- Content Country: GB
- Content Language: en
- App Language: en_US
- Service: none
- Version: 0.20.2
- OS: Linux Android 9 - 28
Crash log
java.lang.ArrayIndexOutOfBoundsException: length=115; index=-1
at java.util.ArrayList.remove(ArrayList.java:506)
at org.schabi.newpipe.local.LocalItemListAdapter.removeItem(LocalItemListAdapter.java:128)
at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.deleteItem(LocalPlaylistFragment.java:620)
at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.lambda$showStreamItemDialog$19$LocalPlaylistFragment(LocalPlaylistFragment.java:790)
at org.schabi.newpipe.local.playlist.-$$Lambda$LocalPlaylistFragment$90syoQLDH9fDdmrHKGkSeGndyvo.onClick(Unknown Source:4)
at org.schabi.newpipe.util.StreamDialogEntry.clickOn(StreamDialogEntry.java:105)
at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.lambda$showStreamItemDialog$20$LocalPlaylistFragment(LocalPlaylistFragment.java:793)
at org.schabi.newpipe.local.playlist.-$$Lambda$LocalPlaylistFragment$XkVgE8RSZjjT9Ft0r7B-0GYSTrk.onClick(Unknown Source:4)
at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1169)
at android.widget.AdapterView.performItemClick(AdapterView.java:318)
at android.widget.AbsListView.performItemClick(AbsListView.java:1159)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3136)
at android.widget.AbsListView$3.run(AbsListView.java:4052)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Device info
- Android version/Custom ROM version: LineageOS 9
- Device model: X00TD