adding a null check

This commit is contained in:
tibbi 2023-08-30 21:29:28 +02:00
parent 25775255be
commit 55c30cafd8

View File

@ -100,7 +100,7 @@ class MediaActionSound(private val context: Context) {
private fun loadSound(sound: SoundState): Int {
var id = 0
if (sound.mediaSound == null) {
if (sound.mediaSound == null || soundPool == null) {
return 0
}