diff -r a180113055cb -r 83d6a149c755 smf/smfservermodule/smfcommon/smfcontact.cpp --- a/smf/smfservermodule/smfcommon/smfcontact.cpp Thu Sep 23 17:43:31 2010 +0530 +++ b/smf/smfservermodule/smfcommon/smfcontact.cpp Mon Oct 11 21:59:54 2010 +0530 @@ -20,7 +20,7 @@ #include #include - +#include #include "smfcontact.h" #include "smfcontact_p.h" @@ -124,7 +124,15 @@ */ void SmfContact::setValue(const QString& aSubType,QVariant& value) { + if(value.isValid()) + { + if((value.toInt()>127 && value.toString()!="Polygon") || (value.toInt()<0 && value.toString()!="Polygon")) + { + qDebug()<< "Invalid data in qVariant"; + } + else d->m_details.insert(aSubType,value); + } } /**