directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r986992 - /directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
Date Thu, 19 Aug 2010 00:23:14 GMT
Author: elecharny
Date: Thu Aug 19 00:23:13 2010
New Revision: 986992

URL: http://svn.apache.org/viewvc?rev=986992&view=rev
Log:
Fixed a potential NPE when the responseName is null

Modified:
    directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java?rev=986992&r1=986991&r2=986992&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
Thu Aug 19 00:23:13 2010
@@ -237,7 +237,7 @@ public class ExtendedResponseImpl extend
      */
     public String getResponseName()
     {
-        return responseName;
+        return ( ( responseName == null ) ? "" : responseName.toString() );
     }
 
 



Mime
View raw message