From 54e8ec5df0926adf4fb734ef2780a9a62b6161b7 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 06 Jun 2007 22:54:32 +0000
Subject: [PATCH] Update the server to provide better interoperability with the Penrose virtual directory.  In particular, this commit exposes the LDAPClientConnection.sendLDAPMessage() method, and fixes a case in which short-circuiting out of the add operation processing in the pre-parse code with a success response could have resulted in a null pointer exception.

---
 opends/src/server/org/opends/server/core/AddOperation.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/AddOperation.java b/opends/src/server/org/opends/server/core/AddOperation.java
index ea10a1a..96c516a 100644
--- a/opends/src/server/org/opends/server/core/AddOperation.java
+++ b/opends/src/server/org/opends/server/core/AddOperation.java
@@ -2230,7 +2230,7 @@
 
     // Notify any change notification listeners that might be registered with
     // the server.
-    if (getResultCode() == ResultCode.SUCCESS)
+    if ((getResultCode() == ResultCode.SUCCESS) && (entry != null))
     {
       for (ChangeNotificationListener changeListener :
            DirectoryServer.getChangeNotificationListeners())
@@ -2268,7 +2268,7 @@
 
 
     // Notify any persistent searches that might be registered with the server.
-    if (getResultCode() == ResultCode.SUCCESS)
+    if ((getResultCode() == ResultCode.SUCCESS) && (entry != null))
     {
       for (PersistentSearch persistentSearch :
            DirectoryServer.getPersistentSearches())

--
Gitblit v1.10.0