--- a/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Tue Jun 15 14:14:38 2010 +0100
+++ b/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp Thu Jul 22 16:33:21 2010 +0100
@@ -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;
}