You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/10/21 01:31:05 UTC

DO NOT REPLY [Bug 50127] New: Possible NPEs in SimpleTCPCluster

https://issues.apache.org/bugzilla/show_bug.cgi?id=50127

           Summary: Possible NPEs in SimpleTCPCluster
           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=26190)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26190)
Patch to eliminate potential NPE

The code does this in several places:

if (object != null) {
...
}
object.method()

If the object can be null, then the method call should be in the conditional
block. If not, eliminate the check.

-- 
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


DO NOT REPLY [Bug 50127] Possible NPEs in SimpleTCPCluster

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50127

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-11-04 15:52:38 EDT ---
Fixed in trunk, will be in 7.0.5 onwards

-- 
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