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

jvergara
06.00.2010 44548f83b6bbaefb03b97fcc833eaea559ac7022
Fix a NullPointerException that occurs in the 'Manage Schema' dialog of the control panel when a syntax has no name (and only has an OID).
1 files modified
10 ■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/renderer/SchemaElementComboBoxCellRenderer.java 10 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/renderer/SchemaElementComboBoxCellRenderer.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.renderer;
@@ -63,11 +63,15 @@
  {
    if (value instanceof AttributeSyntax)
    {
      value = ((AttributeSyntax)value).getSyntaxName();
      if (value == null)
      String syntaxName = ((AttributeSyntax)value).getSyntaxName();
      if (syntaxName == null)
      {
        value = ((AttributeSyntax)value).getOID();
      }
      else
      {
        value = syntaxName;
      }
    }
    else if (value instanceof CommonSchemaElements)
    {