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 51658] New: Potential NPE in CoyoteAdapter.log
Date Sat, 13 Aug 2011 11:10:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51658

             Bug #: 51658
           Summary: Potential NPE in CoyoteAdapter.log
           Product: Tomcat 7
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: felix.schumacher@internetallee.de
    Classification: Unclassified


Created attachment 27384
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27384
logAccess on host instead of context

In CoyoteAdapter.log:501 request.mapping.context is known to be null and
request.mapping.host is checked to be not null, but inside that if branch in
line 503 request.mapping.context will be used.

I think it should be "((Host) request.mappingData.host).logAccess(..." instead.

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