From 1a3a07f47d0c6e9452e39dd0472a3356434782bf Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Thu, 29 Apr 2010 15:34:27 +0000
Subject: [PATCH] Batch of changes that : - Update BDB JE to version 4.0.95 - Remove BDB logging configuration and definitely fix issue 4367  - Resolve issue 4523 - ACI and sub-entry caches not updated on replicas - Update the build factory to warn about generated messages on precommit - Resolve some issues in the Control Panel - Fix an issue with java.properties being ignored by some CLI

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/components/DoubleAddRemovePanel.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/DoubleAddRemovePanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/DoubleAddRemovePanel.java
index 05797dc..92565e9 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/DoubleAddRemovePanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/DoubleAddRemovePanel.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.ui.components;
@@ -194,7 +194,7 @@
           }
           else if (e.getSource() == selectedList2)
           {
-            if (selectedList1.getSelectedValue() != null)
+            if (selectedList2.getSelectedValue() != null)
             {
               remove2Clicked();
             }
@@ -581,7 +581,10 @@
         {
           for (int i=0; i<indexes.length; i++)
           {
-            if (list.getModel().getElementAt(indexes[i]).equals(element))
+            // This check is necessary since the selection model might not
+            // be in sync with the list model.
+            if (indexes[i] < list.getModel().getSize() &&
+                list.getModel().getElementAt(indexes[i]).equals(element))
             {
               list.getSelectionModel().removeIndexInterval(indexes[i],
                   indexes[i]);

--
Gitblit v1.10.0