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

Valery Kharseko
09.05.2024 80bfd4b587ee5adc86953ca0ea56c46b7f789d90
opendj-server-legacy/src/snmp/src/org/opends/server/snmp/SNMPMonitor.java
@@ -13,6 +13,7 @@
 *
 * Copyright 2008 Sun Microsystems, Inc.
 * Portions Copyright 2012-2014 ForgeRock AS.
 * Portions Copyright 2024 3A Systems, LLC.
 */
package org.opends.server.snmp;
@@ -289,10 +290,10 @@
      {
        try
        {
          Attribute attr = (Attribute) server.getAttribute(name, attribute);
          Object attr = server.getAttribute(name, attribute);
          if (attr != null)
          {
            return attr.getValue();
            return attr instanceof  Attribute  ? ((Attribute) attr).getValue(): attr;
          }
        }
        catch (Exception ex)