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

Matthew Swift
11.24.2013 02309396d121143130dd954ee13092bb10f8e250
Fix OPENDJ-729: ArrayIndexOutOfBoundsException when attempting to search using SSL with SASL/EXTERNAL

Additional fix for a NPE discovered during testing.
1 files modified
6 ■■■■ changed files
opendj-sdk/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/LDAPConnectionFactoryImpl.java 6 ●●●● patch | view | raw | blame | history
opendj-sdk/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/LDAPConnectionFactoryImpl.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions copyright 2011-2012 ForgeRock AS
 *      Portions copyright 2011-2013 ForgeRock AS
 */
package com.forgerock.opendj.ldap;
@@ -156,8 +156,8 @@
        }
        private ErrorResultException adaptConnectionException(Throwable t) {
            if (t instanceof ExecutionException) {
                t = t.getCause();
            if (!(t instanceof ErrorResultException) && t instanceof ExecutionException) {
                t = t.getCause() != null ? t.getCause() : t;
            }
            if (t instanceof ErrorResultException) {