--- a/securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorrealm.cpp Mon May 24 20:32:47 2010 +0300
+++ b/securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorrealm.cpp Thu May 27 10:23:43 2010 +0300
@@ -17,7 +17,7 @@
*/
/*
- * %version: 5 %
+ * %version: 6 %
*/
#include <HbEditorInterface>
@@ -84,6 +84,11 @@
void EapQtValidatorRealm::updateEditor(HbLineEdit *edit)
{
+ Q_ASSERT(edit);
+ if(edit == NULL) {
+ return;
+ }
+
switch (mEapType.type()) {
case EapQtExpandedEapType::TypeEapAka:
case EapQtExpandedEapType::TypeEapFast:
@@ -106,6 +111,8 @@
{
qDebug("EapQtValidatorRealm::updateEditorGeneral()");
+ Q_ASSERT(edit);
+
edit->setMaxLength(EapQtConfigInterfacePrivate::StringMaxLength);
edit->setInputMethodHints(Qt::ImhNoAutoUppercase | Qt::ImhPreferLowercase
| Qt::ImhNoPredictiveText);