If we're avoiding printing a long request warning for a GetTexture CAP call, check we received a request handler first since this is not guaranteed.

Resolves harmless logged exception when content type and generic xml rpc requests take more than 3 seconds.
connector_plugin
Justin Clark-Casey (justincc) 2012-10-18 00:39:43 +01:00
parent 0811f3d28d
commit 991151250d
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ namespace OpenSim.Framework.Servers.HttpServer
// Every month or so this will wrap and give bad numbers, not really a problem
// since its just for reporting
int tickdiff = requestEndTick - requestStartTick;
if (tickdiff > 3000 && requestHandler.Name != "GetTexture")
if (tickdiff > 3000 && requestHandler != null && requestHandler.Name != "GetTexture")
{
m_log.InfoFormat(
"[BASE HTTP SERVER]: Slow handling of {0} {1} {2} {3} {4} from {5} took {6}ms",