directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r885290 - /directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java
Date Sun, 29 Nov 2009 23:13:41 GMT
Author: elecharny
Date: Sun Nov 29 23:13:40 2009
New Revision: 885290

URL: http://svn.apache.org/viewvc?rev=885290&view=rev
Log:
Fixed a potential NPE by inverting a test

Modified:
    directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java

Modified: directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java?rev=885290&r1=885289&r2=885290&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerBinaryValue.java
Sun Nov 29 23:13:40 2009
@@ -370,7 +370,7 @@
             {
                 Comparator<? super byte[]> comparator = getLdapComparator();
                 
-                if ( comparator == null )
+                if ( comparator != null )
                 {
                     return comparator.compare( getNormalizedValueReference(), binaryValue.getNormalizedValueReference()
);
                 }



Mime
View raw message