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

Chris Ridd
12.21.2014 3412471ed3f29e7281ca699ac040af2794655c71
Backport fix for OPENDJ-1491: NPE can occur during connection failover
1 files modified
4 ■■■ changed files
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java 4 ●●● patch | view | raw | blame | history
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
@@ -828,7 +828,9 @@
        private boolean checkState(final ResultHandler<?> h) {
            final ErrorResultException error = state.getConnectionError();
            if (error != null) {
                h.handleErrorResult(error);
                if (h != null) {
                    h.handleErrorResult(error);
                }
                return false;
            } else {
                return true;