From a0e1be3280e4be49cf0ca8d211b97ef8c1ddee2f Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 19 Mar 2008 09:36:13 +0000 Subject: Fixed some comparisons of LLUUIDs to null. Thanks to DrSchofld for pointing this out. --- OpenSim/Region/Environment/Modules/XMLRPCModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs index 67ebbf8..4f52ad6 100644 --- a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs +++ b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs @@ -163,7 +163,7 @@ namespace OpenSim.Region.Environment.Modules public LLUUID OpenXMLRPCChannel(uint localID, LLUUID itemID) { - LLUUID channel = null; + LLUUID channel = new LLUUID(); //Is a dupe? foreach (RPCChannelInfo ci in m_openChannels.Values) @@ -176,7 +176,7 @@ namespace OpenSim.Region.Environment.Modules } } - if ((channel.Equals(null)) || (channel.Equals(LLUUID.Zero))) + if (channel == LLUUID.Zero) { channel = LLUUID.Random(); RPCChannelInfo rpcChanInfo = new RPCChannelInfo(localID, itemID, channel); -- cgit v1.1