fix N_SE-41740, N_SE-41744
authorGwangbok Kim <gwangbok.kim@samsung.com>
Tue, 18 Jun 2013 04:57:44 +0000 (13:57 +0900)
committerGwangbok Kim <gwangbok.kim@samsung.com>
Tue, 18 Jun 2013 04:57:44 +0000 (13:57 +0900)
Change-Id: If29af788f19c3418de2f9c0b81b1f42da119e0ac
Signed-off-by: Gwangbok Kim <gwangbok.kim@samsung.com>
src/FScl_AddressbookManagerImpl.cpp

index 917f219..6aa7ff4 100644 (file)
@@ -628,6 +628,7 @@ _AddressbookManagerImpl::GetCategoriesByContactN(RecordId contactId) const
        relFilter.AddInt(_contacts_group_relation.contact_id, CONTACTS_MATCH_EQUAL, contactId);
 
        __Filter<__ContactsContactGroupRel> mainFilter;
+       mainFilter.Construct();
        mainFilter.AddFilter(*pRwAbFilter);
        mainFilter.AddOperator(CONTACTS_FILTER_OPERATOR_AND);
        mainFilter.AddFilter(relFilter);
@@ -658,6 +659,7 @@ _AddressbookManagerImpl::GetCategoriesByPersonN(PersonId personId) const
        relFilter.AddInt(_contacts_contact_grouprel.group_id, CONTACTS_MATCH_GREATER_THAN, 0);
 
        __Filter<__ContactsContactGroupRel> mainFilter;
+       mainFilter.Construct();
        mainFilter.AddFilter(*pRwAbFilter);
        mainFilter.AddOperator(CONTACTS_FILTER_OPERATOR_AND);
        mainFilter.AddFilter(relFilter);