directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r497794 - /directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java
Date Fri, 19 Jan 2007 12:43:36 GMT
Author: pamarcelot
Date: Fri Jan 19 04:43:35 2007
New Revision: 497794

URL: http://svn.apache.org/viewvc?view=rev&rev=497794
Log:
Fixing a bug in the DSML Export Job that caused a NullPointerException to be raised if the
Controls were null.

Modified:
    directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java

Modified: directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java?view=diff&rev=497794&r1=497793&r2=497794
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/jobs/ExportDsmlJob.java
Fri Jan 19 04:43:35 2007
@@ -436,9 +436,12 @@
     {
         List<org.apache.directory.shared.ldap.codec.Control> returnList = new ArrayList<org.apache.directory.shared.ldap.codec.Control>();
 
-        for ( int i = 0; i < controls.length; i++ )
+        if ( controls != null)
         {
-            returnList.add( convertToSharedLDAP( controls[i] ) );
+            for ( int i = 0; i < controls.length; i++ )
+            {
+                returnList.add( convertToSharedLDAP( controls[i] ) );
+            }
         }
 
         return returnList;



Mime
View raw message