phonebookengines/contactsmodel/cntplsql/src/cpplcontacttable.cpp
changeset 46 efe85016a067
parent 24 0ba2181d7c28
--- a/phonebookengines/contactsmodel/cntplsql/src/cpplcontacttable.cpp	Fri Jun 11 13:29:23 2010 +0300
+++ b/phonebookengines/contactsmodel/cntplsql/src/cpplcontacttable.cpp	Wed Jun 23 18:02:44 2010 +0300
@@ -443,7 +443,8 @@
     			User::LeaveIfError(stmnt.BindText(KParamIndex, textToSet));
 			    }			}
 		else if (field.StorageType() == KStorageTypeText &&  // the field is textual
-				 field.TextStorage()->Text().Length() )      // ignore empty fields
+				 field.TextStorage()->Text().Length() &&     // ignore empty fields
+				 custFiltFields != NULL)
 			{
 			// the field is not stored in contact table but potentially maps to a hint
 			hint.UpdateHintL(field, *custFiltFields);