From a6825ae93e4ba7e3e888dc0ede6174de0fe4fae0 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 24 Nov 2009 11:06:16 +0000
Subject: [PATCH] Fix for issue 4366 (NullPointerException when not entering a required value in an entry) Use the proper key to retrieve the label associated with the attribute.

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
index 47b6c2d..6af0e3a 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
@@ -1345,7 +1345,7 @@
     {
       if (!hasValue(attrName))
       {
-        setPrimaryInvalid(hmLabels.get(getConfirmPasswordKey(attrName)));
+        setPrimaryInvalid(hmLabels.get(attrName));
         errors.add(ERR_CTRL_PANEL_ATTRIBUTE_REQUIRED.get(
             hmDisplayedNames.get(attrName)));
       }

--
Gitblit v1.10.0