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

fguigues
25.51.2009 63b53f9d61ffc22573167ad786fd4a8817d41008
opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 */
package org.opends.server.snmp;
@@ -233,7 +233,9 @@
            this.snmpAdaptor = this.getSnmpAdaptor(this.currentConfig);
            if (this.snmpAdaptor == null) {
                throw new Exception();
               Exception ex = new Exception(
                    ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString());
               throw ex;
            }
            // Create the Usm MIB to allow user management
@@ -298,9 +300,6 @@
            this.server.registerMBean(this.snmpAdaptor, snmpObjName);
        } catch (Exception ex) {
            if (debugEnabled()) {
                TRACER.debugCaught(DebugLogLevel.ERROR, ex);
            }
            throw new Exception(
                    ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString());
        }