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 50131] New: PersistentValve.invoke - possible NPE at line 186
Date Wed, 20 Oct 2010 23:59:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50131

           Summary: PersistentValve.invoke - possible NPE at line 186
           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=26194)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26194)
Don't dereference null when generating the log message

PersistentValve.invoke() has the code:

if (session != null && ...){
} else {
    session.isValid() // line 186

It's quite possible that session is null in the log message.

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