tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53606] NullPointerException in TcpPingInterceptor
Date Thu, 26 Jul 2012 16:26:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53606

--- Comment #2 from F.Arnoud <frederic.arnoud@gmail.com> ---
I used this solution:

    protected void sendPing() {
        TcpFailureDetector tcpFailureDetector = failureDetector!=null ?
failureDetector.get() : null;
        if (tcpFailureDetector!=null) {
            //we have a reference to the failure detector
            //piggy back on that dude
            tcpFailureDetector.checkMembers(true);
        }else {
            StaticMembershipInterceptor staticMembershipInterceptor =
staticOnly && staticMembers!=null ? staticMembers.get() : null;
            if (staticMembershipInterceptor!=null) {
                sendPingMessage(staticMembershipInterceptor.getMembers());
            } else {
                sendPingMessage(getMembers());
            }
        }
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message