@@ -602,8 +602,10 @@ Item {
602602 compare(bodyLabel.visible, data.bodyVisible, "body-text visibility is incorrect")
603603 compare(buttonRow.visible, data.buttonRowVisible, "button visibility is incorrect")
604604
605− var audioItem = findInvisibleChild(notification, "sound")
606− compare(audioItem.playbackState, data.hasSound ? Audio.PlayingState : Audio.StoppedState, "Audio has wrong state")
605+ if (data.hasSound) {
606+ var audioItem = findInvisibleChild(notification, "sound")
607+ compare(audioItem.playbackState, data.hasSound ? Audio.PlayingState : Audio.StoppedState, "Audio has wrong state")
608+ }
607609
608610 if(data.buttonRowVisible) {
609611 var buttonCancel = findChild(buttonRow, "notify_button1")