securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorrealm.cpp
changeset 27 9660a5eb236f
parent 26 9abfd4f00d37
child 34 ad1f037f1ac2
--- 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);