File r894620.diff of Package kdepimlibs4

Subject: kldap: crash bug fix
From: wstephenson@suse.de
Bug: kde#174381
Patch-upstream: 894620
--- kldap/ldapconfigwidget.cpp	(revision 894619)
+++ kldap/ldapconfigwidget.cpp	(revision 894620)
@@ -494,12 +494,14 @@ void LdapConfigWidget::Private::setSASL(
 
 void LdapConfigWidget::Private::setLDAPPort()
 {
-  mPort->setValue( 389 );
+  if ( mPort )
+    mPort->setValue( 389 );
 }
 
 void LdapConfigWidget::Private::setLDAPSPort()
 {
-  mPort->setValue( 636 );
+  if ( mPort )
+    mPort->setValue( 636 );
 }
 
 LdapConfigWidget::LdapConfigWidget( QWidget *parent, Qt::WFlags fl )
Index: kldap/ldapconfigwidget.cpp
===================================================================
openSUSE Build Service is sponsored by