equal
deleted
inserted
replaced
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 { |