diff -r c84cf270c54f -r 8871b09be73b phoneapp/phoneuiview/src/cphoneaudioplayer.cpp --- a/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp Tue Feb 02 00:10:04 2010 +0200 +++ b/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp Fri Feb 19 22:50:26 2010 +0200 @@ -998,11 +998,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; } @@ -1041,11 +1041,11 @@ //_DPRINT( 5, "P.Aud.Mute" ); if ( iPlayerStatus == ETonePlaying ) { - if ( iFormat == EFormatTone ) + if ( iFormat == EFormatTone && iTonePlayer ) { iTonePlayer->SetVolume(0); } - else if ( iFormat == EFormatTts ) + else if ( iFormat == EFormatTts && iTtsPlayer ) { iTtsPlayer->SetVolume(0); }