From 6fd8960064dccc7a110163598ee9186e74972c7b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 17 Nov 2008 23:48:29 +0000 Subject: [PATCH] Prevent the texture downloader from locking a null object when a download hits bad data --- .../Environment/Modules/Agent/TextureSender/TextureSender.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs index 53be7c5b62..583062d8b3 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs @@ -176,6 +176,9 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender // See ITextureSender public void UpdateRequest(int discardLevel, uint packetNumber) { + if (download == null) + return; + lock (download) { if (discardLevel < download.DiscardLevel)