From 06ec8c88556b02782c7b91a233de91eaf4a1439d Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 09 Jun 2009 12:28:05 +0000
Subject: [PATCH] Fix for issue 3550 (Consider making the control panel able to manage remote servers)

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
index 60ba960..4478668 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.ui;
@@ -647,10 +647,13 @@
   {
     boolean isOperational = false;
     attrName = Utilities.getAttributeNameWithoutOptions(attrName);
-    AttributeType attrType = schema.getAttributeType(attrName.toLowerCase());
-    if (attrType != null)
+    if (schema != null)
     {
-      isOperational = attrType.isOperational();
+      AttributeType attrType = schema.getAttributeType(attrName.toLowerCase());
+      if (attrType != null)
+      {
+        isOperational = attrType.isOperational();
+      }
     }
     return !isOperational || isEditableOperationalAttribute(attrName);
   }

--
Gitblit v1.10.0