Catch a nullref in the code to suppress GetTexture warnign spam we can't

do a thing about anyway.
avinationmerge
Melanie 2012-09-16 16:42:30 +02:00
parent 2aa7a22129
commit a97436f2f1
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,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 == null || requestHandler.Name != "GetTexture"))
{
m_log.InfoFormat(
"[BASE HTTP SERVER]: Slow handling of {0} {1} {2} {3} from {4} took {5}ms",