--- a/javauis/nokiasound_akn/src/cmidsound.cpp Fri Apr 30 10:40:48 2010 +0300
+++ b/javauis/nokiasound_akn/src/cmidsound.cpp Tue May 11 16:07:20 2010 +0300
@@ -205,10 +205,18 @@
TInt CMIDSound::DoPlay(TInt aLoop)
{
JELOG2(EJavaUI);
- TInt state = iMIDSound->State();
- if (state != CMIDSoundImpl::EReadyToPlay)
+
+ if ( iMIDSound )
{
- return state;
+ TInt state = iMIDSound->State();
+ if (state != CMIDSoundImpl::EReadyToPlay)
+ {
+ return state;
+ }
+ }
+ else
+ {
+ return CMIDSoundImpl::ENotSupported;
}
if (!IsAudioEnabled())
{