TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.32k stars 3.05k forks source link

[Android TV] Crash/NPE when launching a 2nd video from search #8602

Closed pihug12 closed 2 years ago

pihug12 commented 2 years ago

Checklist

Affected version

v0.23.1

Steps to reproduce the bug

Play a video. Search a 2nd video and start it while the 1st one is still playing.

Expected behavior

The 2nd video should start.

Actual behavior

It crashes.

java.lang.RuntimeException: Unable to start service org.schabi.newpipe.player.MainPlayer [...]
  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3724)
  [...]
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Conte..'
  at org.schabi.newpipe.player.NotificationUtil.createNotification(NotificationUtil.java:92)
  [...]

Screenshots/Screen recordings

20220710_150447_cr 20220710_150507_cr

Logs

No response

Affected Android/Custom ROM version

Android TV 9

Affected device model

TV Box of a French ISP

Additional information

No response

AudricV commented 2 years ago
  • [x] I made sure that there are no existing issues - open or closed - which I could contribute my information to.

Duplicate of #8384. Please search (better, with different keywords?) for duplicates the next time you want to open an issue. Thank you.