directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1424866 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
Date Fri, 21 Dec 2012 11:14:17 GMT
Author: pamarcelot
Date: Fri Dec 21 11:14:17 2012
New Revision: 1424866

URL: http://svn.apache.org/viewvc?rev=1424866&view=rev
Log:
Fixed a potential NPE.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java?rev=1424866&r1=1424865&r2=1424866&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
Fri Dec 21 11:14:17 2012
@@ -789,7 +789,16 @@ public class ReplicationDetailsPage impl
             }
 
             // Search Base DN
-            input.setSearchBaseDn( checkEmptyString( entryWidget.getDn().toString() ) );;
+            Dn baseDn = entryWidget.getDn();
+
+            if ( baseDn != null )
+            {
+                input.setSearchBaseDn( checkEmptyString( baseDn.toString() ) );
+            }
+            else
+            {
+                input.setSearchBaseDn( null );
+            }
 
             // Search Filter
             input.setReplSearchFilter( checkEmptyString( filterWidget.getFilter() ) );



Mime
View raw message