diff -r ba76fc04e6c2 -r 6b911d05207e phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp --- a/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Fri Jun 04 10:19:18 2010 +0100 +++ b/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Wed Jun 23 18:12:20 2010 +0300 @@ -997,11 +997,11 @@ TInt result( 0 ); - if ( iFormat == EFormatTone ) + if ( iFormat == EFormatTone && iTonePlayer) { result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel; } - else if ( iFormat == EFormatTts ) + else if ( iFormat == EFormatTts && iTtsPlayer ) { result = iTtsPlayer->MaxVolume() * aVolume / KMaxVolumeLevel; }