mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
09.28.2009 06ec8c88556b02782c7b91a233de91eaf4a1439d
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);
  }