directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r892867 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
Date Mon, 21 Dec 2009 16:31:18 GMT
Author: elecharny
Date: Mon Dec 21 16:31:18 2009
New Revision: 892867

URL: http://svn.apache.org/viewvc?rev=892867&view=rev
Log:
Not adding the BYTECODE field if it's empty (it was generating a parsing error)

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java?rev=892867&r1=892866&r2=892867&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
Mon Dec 21 16:31:18 2009
@@ -997,7 +997,7 @@
 
         buf.append( "FQCN " ).append( description.getFqcn() ).append( " " );
 
-        if ( description.getBytecode() != null )
+        if ( !StringTools.isEmpty( description.getBytecode() ) )
         {
             buf.append( "BYTECODE " ).append( description.getBytecode() );
         }



Mime
View raw message