Avoid NullPointerException

This commit is contained in:
Naveen 2023-07-27 16:21:18 +05:30
parent 6e8ba9aa55
commit c6224ad332
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -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()