--- a/sipvoipprovider/src/svpcontroller.cpp Fri Feb 19 22:44:34 2010 +0200
+++ b/sipvoipprovider/src/svpcontroller.cpp Fri Mar 12 15:42:09 2010 +0200
@@ -2226,8 +2226,15 @@
// Get VoIP profile by service id
reg->FindByServiceIdL( callParams.ServiceId(), entryArray );
// Take first entry from array
- CRCSEProfileEntry* entry = entryArray[0];
-
+ CRCSEProfileEntry* entry = NULL;
+ if (entryArray.Count() > 0)
+ {
+ entry = entryArray[0];
+ }
+ else
+ {
+ User::Leave(KErrNotFound);
+ }
// array for provisioned data
CDesC8ArrayFlat* userAgentHeaders = new( ELeave )CDesC8ArrayFlat( 4 );
CleanupStack::PushL( userAgentHeaders );