mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
adding a null check
This commit is contained in:
@ -100,7 +100,7 @@ class MediaActionSound(private val context: Context) {
|
|||||||
|
|
||||||
private fun loadSound(sound: SoundState): Int {
|
private fun loadSound(sound: SoundState): Int {
|
||||||
var id = 0
|
var id = 0
|
||||||
if (sound.mediaSound == null) {
|
if (sound.mediaSound == null || soundPool == null) {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user