https://issues.apache.org/bugzilla/show_bug.cgi?id=53606
--- Comment #3 from Sebb <s...@apache.org> --- (In reply to comment #2) > I used this solution: > > protected void sendPing() { > TcpFailureDetector tcpFailureDetector = failureDetector!=null ? > failureDetector.get() : null; > if (tcpFailureDetector!=null) { That's nice; and better than v2 as it also protects against another possible NPE, i.e.: failureDetector.get() can return null (it's a WeakReference, so get() can return null at any time). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org