phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp
changeset 45 6b911d05207e
parent 21 92ab7f8d0eab
--- 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;    
         }