pimprotocols/phonebooksync/Server/SyncEngineServer.cpp
changeset 81 640d30f4fb64
parent 0 e686773b3f54
equal deleted inserted replaced
77:c18f9fa7f42e 81:640d30f4fb64
   498 			// relates to this phonebook.
   498 			// relates to this phonebook.
   499 			//
   499 			//
   500 			CContactGroup*  group = static_cast<CContactGroup*> (iDb->ReadContactLC((*idList)[index]));
   500 			CContactGroup*  group = static_cast<CContactGroup*> (iDb->ReadContactLC((*idList)[index]));
   501 			CContactIdArray*  itemList = group->ItemsContainedLC();
   501 			CContactIdArray*  itemList = group->ItemsContainedLC();
   502 
   502 
   503 			if (itemList->Count() > 0)
   503 			if ( itemList && itemList->Count() > 0)
   504 				{
   504 				{
   505 				CContactItem*  groupItem = iDb->ReadContactLC((*itemList)[0]);
   505 				CContactItem*  groupItem = iDb->ReadContactLC((*itemList)[0]);
   506 				TContactItemId templateId = groupItem->TemplateRefId();
   506 				TContactItemId templateId = groupItem->TemplateRefId();
   507 				if (templateId != KNullContactId)
   507 				if (templateId != KNullContactId)
   508 					{
   508 					{