From a6c5e00c45b3d64b4e912a65c8ed7f31eb643759 Mon Sep 17 00:00:00 2001 From: Pixel Tomsen Date: Thu, 6 Oct 2011 21:04:20 +0200 Subject: [PATCH] GridService - Region UUID can not be NULL http://opensimulator.org/mantis/view.php?id=3426 --- OpenSim/Services/GridService/GridService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 0a4372ab72..0aeae67b4c 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs @@ -107,6 +107,8 @@ namespace OpenSim.Services.GridService public string RegisterRegion(UUID scopeID, GridRegion regionInfos) { IConfig gridConfig = m_config.Configs["GridService"]; + // First Check for invalidate NULL-UUID, if true fast quit + if (regionInfos.RegionID == UUID.Zero) return "Invalidate RegionID - can not be UUID-NULL"; // This needs better sanity testing. What if regionInfo is registering in // overlapping coords? RegionData region = m_Database.Get(regionInfos.RegionLocX, regionInfos.RegionLocY, scopeID);