tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48282] New: Possible NPE in org.apache.tomcat.util.modeler.Registry
Date Wed, 25 Nov 2009 15:42:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48282

           Summary: Possible NPE in
                    org.apache.tomcat.util.modeler.Registry
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sebb@apache.org


Created an attachment (id=24612)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24612)
Patch - see description

There is a possible NPE in org.apache.tomcat.util.modeler.Registry:


if ((group == null) && (item.getGroup() == null)) {
    results.add(item.getName());
} else if (group.equals(item.getGroup())) { // group may be null
    results.add(item.getName());
}

The Javadoc implies that the item.getGroup() check should be nested.

Patch to follow; also fixes one raw type.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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