[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623652#action_12623652
 ] 

Flavio Paiva Junqueira commented on ZOOKEEPER-115:
--------------------------------------------------

I have a patch for it already, but the problem I have is that the current code 
from trunk is not compiling, so I cannot test it.

> Potential NPE in QuorumCnxManager
> ---------------------------------
>
>                 Key: ZOOKEEPER-115
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-115
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: quorum
>            Reporter: Patrick Hunt
>            Assignee: Flavio Paiva Junqueira
>
> Findbugs flagged this, notice that we are checking for null after using the 
> reference.
>                if (senderWorkerMap.get(s.socket().getInetAddress()) != null) {
>                     senderWorkerMap.get(s.socket().getInetAddress()).finish();
>                 }
>                 /*
>                  * Start new worker thread with a clean state.
>                  */
>                 if (s != null) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to