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

Jean-Noël Rouvignac
04.05.2016 9529c418255af8de0cceb952afd006b60b9927a1
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
@@ -2420,10 +2420,10 @@
  {
    if (sr != null)
    {
      final List<ByteString> values = sr.getAttributeValues(attrName);
      if (!values.isEmpty())
      final Attribute attr = sr.getAttribute(attrName);
      if (attr != null && !attr.isEmpty())
      {
        final ByteString v = values.get(0);
        final ByteString v = attr.iterator().next();
        if (v != null)
        {
          return v.toString();