Fix possible NPE

This commit is contained in:
Maxr1998
2020-07-25 14:00:47 +02:00
parent e1ef56aae1
commit b5e31912bf
@@ -120,7 +120,7 @@ class RemotePlayerService : Service(), CoroutineScope {
return super.onUnbind(intent)
}
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (mediaSessionManager == null) {
initMediaSessions()
}