directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 57027 - incubator/directory/eve/trunk/protocol/src/java/org/apache/eve/protocol
Date Tue, 09 Nov 2004 12:40:14 GMT
Author: akarasulu
Date: Tue Nov  9 04:40:13 2004
New Revision: 57027

Modified:
   incubator/directory/eve/trunk/protocol/src/java/org/apache/eve/protocol/SearchHandler.java
Log:
fixed null pointer exceptions on matched DN

Modified: incubator/directory/eve/trunk/protocol/src/java/org/apache/eve/protocol/SearchHandler.java
==============================================================================
--- incubator/directory/eve/trunk/protocol/src/java/org/apache/eve/protocol/SearchHandler.java
(original)
+++ incubator/directory/eve/trunk/protocol/src/java/org/apache/eve/protocol/SearchHandler.java
Tue Nov  9 04:40:13 2004
@@ -101,6 +101,10 @@
             {
                 resp.getLdapResult().setMatchedDn( e.getResolvedName().toString() );
             }
+            else
+            {
+                resp.getLdapResult().setMatchedDn( "" );
+            }
 
             return Collections.singleton( resp ).iterator();
         }
@@ -121,6 +125,10 @@
         if ( e.getResolvedName() != null )
         {
             resp.getLdapResult().setMatchedDn( e.getResolvedName().toString() );
+        }
+        else
+        {
+            resp.getLdapResult().setMatchedDn( "" );
         }
 
         return resp;

Mime
View raw message