The main ASF Bugzilla instance will be unavailable for 4 hours starting 19.00 UTC 2016-10-29 for an upgrade to 5.0.3
Bug 51658 - Potential NPE in CoyoteAdapter.log
Potential NPE in CoyoteAdapter.log
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
All All
: P2 trivial (vote)
: ---
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2011-08-13 11:10 UTC by Felix Schumacher
Modified: 2011-08-16 08:59 UTC (History)
0 users

logAccess on host instead of context (735 bytes, patch)
2011-08-13 11:10 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schumacher 2011-08-13 11:10:19 UTC
Created attachment 27384 [details]
logAccess on host instead of context

In CoyoteAdapter.log:501 request.mapping.context is known to be null and 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)" instead.
Comment 1 Mark Thomas 2011-08-16 08:59:39 UTC
Thanks for the report. This has been fixed in trunk and 7.0.x and will be included in 7.0.21 onwards.