phoneclientserver/phoneserver/Src/Ussd/CPhSrvUssdManager.cpp
branchRCL_3
changeset 3 a4a774cb6ea7
parent 0 ff3b6d0fd310
child 14 71e7b994dff4
--- a/phoneclientserver/phoneserver/Src/Ussd/CPhSrvUssdManager.cpp	Tue Feb 02 01:11:09 2010 +0200
+++ b/phoneclientserver/phoneserver/Src/Ussd/CPhSrvUssdManager.cpp	Fri Feb 19 23:21:58 2010 +0200
@@ -709,7 +709,6 @@
     _DPRINT( 4, "PhSrv.UssdNetworkObserverHandleSendEventL.End" );
     }
 
-
 // -----------------------------------------------------------------------------
 // CPhSrvUssdManager::UssdAppTaskExists
 //
@@ -1556,16 +1555,23 @@
 // CPhSrvUssdManager::NotifyCount()
 // -----------------------------------------------------------------------------
 //
-  TInt CPhSrvUssdManager:: NotifyCount()
+  TInt CPhSrvUssdManager::NotifyCount()
   {
-  return iNotifyArray->Count();
+  if( iNotifyArray )
+      {
+      return iNotifyArray->Count();
+      }
+  else
+      {
+      return 0;
+      }
   }
 
   // -----------------------------------------------------------------------------
 // CPhSrvUssdManager::UpdateNotifyMessage()
 // -----------------------------------------------------------------------------
 //
-  void CPhSrvUssdManager:: UpdateNotifyMessage()
+  void CPhSrvUssdManager::UpdateNotifyMessage()
   	{
   	_DDPRINT( 4, "PhSrv.UpdateNotifyMessage.Start, clear: ", iClearArray );     // debug print
   	if (NotifyCount() > 1 && !iClearArray )