NewPipe
NewPipe copied to clipboard
Using auto-rotation while a video is loading crashes the app consistently.
Checklist
- [X] I am able to reproduce the bug with the latest version.
- [X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
- [X] I have read the FAQ and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
Affected version
0.24.0
Steps to reproduce the bug
May be related to #8152
To reproduce, queue up two or more videos, then at the end of one video, right before the next one starts playing, use auto-rotate. The beginning orientation does not matter, but portrait to landscape or vice versa.
Expected behavior
I expect roration as normal
Actual behavior
App crashes
Screenshots/Screen recordings
No response
Logs
-------------------------------------
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Activity.runOnUiThread(java.lang.Runnable)' on a null object reference
at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$handleResult$24(VideoDetailFragment.java:1639)
at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$D3sK6QX7ZcbWy9dq9XyuPqnEH_c(Unknown Source:0)
at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda22.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
-------------------------------------
Affected Android/Custom ROM version
LineageOS 17.1 through 20
Affected device model
OnePlus 6, Pixel 3a, Nexus 6P
Additional information
No response