Skip to content

Commit 55c30ca

Browse files
committed
adding a null check
1 parent 2577525 commit 55c30ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/kotlin/com/simplemobiletools/camera/helpers/MediaActionSound.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class MediaActionSound(private val context: Context) {
100100

101101
private fun loadSound(sound: SoundState): Int {
102102
var id = 0
103-
if (sound.mediaSound == null) {
103+
if (sound.mediaSound == null || soundPool == null) {
104104
return 0
105105
}
106106

0 commit comments

Comments
 (0)