diff options
Diffstat (limited to 'OpenSim/Grid/GridServer')
-rw-r--r-- | OpenSim/Grid/GridServer/GridManager.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index 98abd53..7c9e776 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs | |||
@@ -716,23 +716,29 @@ namespace OpenSim.Grid.GridServer | |||
716 | RegionProfileData simData = null; | 716 | RegionProfileData simData = null; |
717 | if (requestData.ContainsKey("region_UUID")) | 717 | if (requestData.ContainsKey("region_UUID")) |
718 | { | 718 | { |
719 | simData = GetRegion(new LLUUID((string)requestData["region_UUID"])); | 719 | LLUUID regionID = new LLUUID((string)requestData["region_UUID"]); |
720 | simData = GetRegion(regionID); | ||
721 | if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionID {0}", regionID); | ||
720 | } | 722 | } |
721 | else if (requestData.ContainsKey("region_handle")) | 723 | else if (requestData.ContainsKey("region_handle")) |
722 | { | 724 | { |
723 | //CFK: The if/else below this makes this message redundant. | 725 | //CFK: The if/else below this makes this message redundant. |
724 | //CFK: Console.WriteLine("requesting data for region " + (string) requestData["region_handle"]); | 726 | //CFK: Console.WriteLine("requesting data for region " + (string) requestData["region_handle"]); |
725 | simData = GetRegion(Convert.ToUInt64((string)requestData["region_handle"])); | 727 | ulong regionHandle = Convert.ToUInt64((string)requestData["region_handle"]); |
728 | simData = GetRegion(regionHandle); | ||
729 | if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionHandle {0}", regionHandle); | ||
726 | } | 730 | } |
727 | else if (requestData.ContainsKey("region_name_search")) | 731 | else if (requestData.ContainsKey("region_name_search")) |
728 | { | 732 | { |
729 | simData = GetRegion((string)requestData["region_name_search"]); | 733 | string regionName = (string)requestData["region_name_search"]; |
734 | simData = GetRegion(regionName); | ||
735 | if (simData == null) m_log.WarnFormat("[DATA] didn't find region for regionName {0}", regionName); | ||
730 | } | 736 | } |
737 | else m_log.Warn("[DATA] regionlookup without regionID, regionHandle or regionHame"); | ||
731 | 738 | ||
732 | if (simData == null) | 739 | if (simData == null) |
733 | { | 740 | { |
734 | //Sim does not exist | 741 | //Sim does not exist |
735 | Console.WriteLine("region not found"); | ||
736 | responseData["error"] = "Sim does not exist"; | 742 | responseData["error"] = "Sim does not exist"; |
737 | } | 743 | } |
738 | else | 744 | else |