Avoid NullPointerException
This commit is contained in:
parent
6e8ba9aa55
commit
c6224ad332
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ class MusicService : Service(), MultiPlayer.PlaybackCallbacks {
|
|||
mCurrTrackCover = getAlbumImage().first
|
||||
trackChanged()
|
||||
|
||||
val secs = getPosition()!! / 1000
|
||||
val secs = (getPosition() ?: 0) / 1000
|
||||
broadcastTrackProgress(secs)
|
||||
}
|
||||
trackStateChanged()
|
||||
|
|
Loading…
Reference in a new issue