directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1485296 - /directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java
Date Wed, 22 May 2013 17:27:08 GMT
Author: elecharny
Date: Wed May 22 17:27:08 2013
New Revision: 1485296

URL: http://svn.apache.org/r1485296
Log:
Moved some code

Modified:
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java?rev=1485296&r1=1485295&r2=1485296&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/pwdModify/PasswordModifyResponseDecorator.java
Wed May 22 17:27:08 2013
@@ -103,6 +103,11 @@ public class PasswordModifyResponseDecor
             try
             {
                 responseValue = passwordModifyResponse.encode().array();
+
+                if ( responseValue == null )
+                {
+                    return null;
+                }
             }
             catch ( EncoderException e )
             {
@@ -111,11 +116,6 @@ public class PasswordModifyResponseDecor
             }
         }
 
-        if ( responseValue == null )
-        {
-            return null;
-        }
-
         final byte[] copy = new byte[responseValue.length];
         System.arraycopy( responseValue, 0, copy, 0, responseValue.length );
 



Mime
View raw message