From a6d8a1ecce739817c0e5a9d279f4093ccc2e2c7f Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 17 Sep 2006 21:30:58 +0000
Subject: [PATCH] Fix a problem in the backend config manager that could possibly result in an exception in the writability mode configuration.
---
opends/src/server/org/opends/server/core/BackendConfigManager.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/BackendConfigManager.java b/opends/src/server/org/opends/server/core/BackendConfigManager.java
index 5c47dde..2ebed75 100644
--- a/opends/src/server/org/opends/server/core/BackendConfigManager.java
+++ b/opends/src/server/org/opends/server/core/BackendConfigManager.java
@@ -313,7 +313,7 @@
MultiChoiceConfigAttribute writabilityAttr =
(MultiChoiceConfigAttribute)
backendEntry.getConfigAttribute(writabilityStub);
- if (writabilityStub == null)
+ if (writabilityAttr == null)
{
msgID = MSGID_CONFIG_BACKEND_NO_WRITABILITY_MODE;
String message = getMessage(msgID, String.valueOf(backendDN));
@@ -1731,7 +1731,7 @@
MultiChoiceConfigAttribute writabilityAttr =
(MultiChoiceConfigAttribute)
configEntry.getConfigAttribute(writabilityStub);
- if (writabilityStub == null)
+ if (writabilityAttr == null)
{
msgID = MSGID_CONFIG_BACKEND_NO_WRITABILITY_MODE;
messages.add(getMessage(msgID, String.valueOf(backendDN)));
--
Gitblit v1.10.0