diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/LandManagement')
-rw-r--r-- | OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs index 1311fd3..68e8fcf 100644 --- a/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs +++ b/OpenSim/Region/Environment/Modules/LandManagement/LandObject.cs | |||
@@ -763,11 +763,25 @@ namespace OpenSim.Region.Environment.Modules.LandManagement | |||
763 | 763 | ||
764 | foreach (SceneObjectGroup obj in primsOverMe) | 764 | foreach (SceneObjectGroup obj in primsOverMe) |
765 | { | 765 | { |
766 | if (!ownersAndCount.ContainsKey(obj.OwnerID)) | 766 | try |
767 | { | ||
768 | if (!ownersAndCount.ContainsKey(obj.OwnerID)) | ||
769 | { | ||
770 | ownersAndCount.Add(obj.OwnerID, 0); | ||
771 | } | ||
772 | } | ||
773 | catch (NullReferenceException) | ||
774 | { | ||
775 | m_log.Info("[LAND]: " + "Got Null Reference when searching land owners from the parcel panel"); | ||
776 | } | ||
777 | try | ||
778 | { | ||
779 | ownersAndCount[obj.OwnerID] += obj.PrimCount; | ||
780 | } | ||
781 | catch (KeyNotFoundException) | ||
767 | { | 782 | { |
768 | ownersAndCount.Add(obj.OwnerID, 0); | 783 | m_log.Error("[LAND]: Unable to match a prim with it's owner."); |
769 | } | 784 | } |
770 | ownersAndCount[obj.OwnerID] += obj.PrimCount; | ||
771 | } | 785 | } |
772 | if (ownersAndCount.Count > 0) | 786 | if (ownersAndCount.Count > 0) |
773 | { | 787 | { |