From 0e9dda91cbaa0a4431772daeb338ecebf0d2268d Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 9 Aug 2011 20:55:06 +0200 Subject: [PATCH] Guard against a bad login leaving us with a null queue --- OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index 95a8e2357c..758fd93d3b 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs @@ -521,7 +521,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP // No dequeued packet waiting to be sent, try to pull one off // this queue queue = m_packetOutboxes[i]; - if (queue.Dequeue(out packet)) + if (queue != null && queue.Dequeue(out packet)) { // A packet was pulled off the queue. See if we have // enough tokens in the bucket to send it out