[jboss-jira] [JBoss JIRA] Updated: (JGRP-707) stats logic NPE in NAKACK

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue Mar 11 15:02:58 EDT 2008


     [ http://jira.jboss.com/jira/browse/JGRP-707?page=all ]

Bela Ban updated JGRP-707:
--------------------------

    Fix Version/s: 2.6.3
                   2.7

> stats logic NPE in NAKACK
> -------------------------
>
>                 Key: JGRP-707
>                 URL: http://jira.jboss.com/jira/browse/JGRP-707
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.6.1
>            Reporter: Gray Watson
>         Assigned To: Bela Ban
>            Priority: Minor
>             Fix For: 2.6.3, 2.7
>
>         Attachments: NAKACK.java.patch
>
>
> In the code for NAKACK, the first packet which is recorded as part of the stats for an address throws NPE.
>         StatsEntry entry=map.get(key);
>         if(entry == null) {
>             entry = new StatsEntry();
>             entry = map.putIfAbsent(key, entry);
>            // ^^^^ this can return null if key does not exist
>         }
>         entry.xmit_reqs+=req;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list