directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1685683 - /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java
Date Mon, 15 Jun 2015 22:37:06 GMT
Author: elecharny
Date: Mon Jun 15 22:37:06 2015
New Revision: 1685683

URL: http://svn.apache.org/r1685683
Log:
Fixed a bad Integer parsing when the string is empty

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java?rev=1685683&r1=1685682&r2=1685683&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java
(original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/SecurityPage.java
Mon Jun 15 22:37:06 2015
@@ -40,6 +40,7 @@ import org.eclipse.ui.forms.widgets.Form
 import org.eclipse.ui.forms.widgets.Section;
 import org.eclipse.ui.forms.widgets.TableWrapData;
 import org.eclipse.ui.forms.widgets.TableWrapLayout;
+import org.apache.directory.api.util.Strings;
 import org.apache.directory.studio.common.ui.widgets.BaseWidgetUtils;
 import org.apache.directory.studio.common.ui.widgets.TableWidget;
 import org.apache.directory.studio.common.ui.widgets.WidgetModifyEvent;
@@ -238,7 +239,10 @@ public class SecurityPage extends OpenLD
     {
         public void modifyText( ModifyEvent e )
         {
-            getConfiguration().getGlobal().setOlcLocalSSF( Integer.valueOf( localSsfText.getText()
) );
+            if ( !Strings.isEmpty( localSsfText.getText() ) )
+            {
+                getConfiguration().getGlobal().setOlcLocalSSF( Integer.valueOf( localSsfText.getText()
) );
+            }
         }
     };
     



Mime
View raw message