From 2c7982336912f5a0b15ad5727d123b97b88336e1 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 30 Mar 2007 19:43:52 +0000
Subject: [PATCH] Fix a problem in the subject attribute to user attribute certificate mapper in which a local variable was mistakenly used instead of the instance variable, causing a null pointer exception when the class variable was used without being properly initialized.

---
 opendj-sdk/opends/src/server/org/opends/server/extensions/SubjectAttributeToUserAttributeCertificateMapper.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/extensions/SubjectAttributeToUserAttributeCertificateMapper.java b/opendj-sdk/opends/src/server/org/opends/server/extensions/SubjectAttributeToUserAttributeCertificateMapper.java
index 815f484..5106a8b 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/extensions/SubjectAttributeToUserAttributeCertificateMapper.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/extensions/SubjectAttributeToUserAttributeCertificateMapper.java
@@ -119,8 +119,7 @@
     configEntryDN = configuration.dn();
 
     // Get and validate the subject attribute to user attribute mappings.
-    LinkedHashMap<String,AttributeType> attributeMap =
-         new LinkedHashMap<String,AttributeType>();
+    attributeMap = new LinkedHashMap<String,AttributeType>();
     for (String mapStr : configuration.getSubjectAttributeMapping())
     {
       String lowerMap = toLowerCase(mapStr);

--
Gitblit v1.10.0