--- a/pimprotocols/phonebooksync/Server/SyncEngineServer.cpp Fri Oct 08 11:42:51 2010 +0300
+++ b/pimprotocols/phonebooksync/Server/SyncEngineServer.cpp Fri Oct 15 12:24:46 2010 +0300
@@ -500,7 +500,7 @@
CContactGroup* group = static_cast<CContactGroup*> (iDb->ReadContactLC((*idList)[index]));
CContactIdArray* itemList = group->ItemsContainedLC();
- if (itemList->Count() > 0)
+ if ( itemList && itemList->Count() > 0)
{
CContactItem* groupItem = iDb->ReadContactLC((*itemList)[0]);
TContactItemId templateId = groupItem->TemplateRefId();