directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r555560 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
Date Thu, 12 Jul 2007 10:03:59 GMT
Author: pamarcelot
Date: Thu Jul 12 03:03:58 2007
New Revision: 555560

URL: http://svn.apache.org/viewvc?view=rev&rev=555560
Log:
Fixed a bug in the OpenLdapSchemaFileImporter.
Wrong variable used when looping in a for was causing an ArrayOutOfBounds exception.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java?view=diff&rev=555560&r1=555559&r2=555560
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
Thu Jul 12 03:03:58 2007
@@ -117,7 +117,7 @@
         }
 
         List<?> ocs = parser.getObjectClassTypes();
-        for ( int i = 0; i < ats.size(); i++ )
+        for ( int i = 0; i < ocs.size(); i++ )
         {
             ObjectClassImpl oc = convertObjectClass( ( ObjectClassLiteral ) ocs.get( i )
);
             oc.setSchema( schemaName );



Mime
View raw message