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.schumac...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to