From 65ea917d3455892306c7afffc6f9bcaa6f9f3589 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 19 Jan 2008 20:59:47 +0000 Subject: Added exception handler to LandManager IncomingLandObjectFromStorage --- OpenSim/Region/Environment/LandManagement/LandManager.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index 3bd8848..bdb50cc 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs @@ -119,10 +119,21 @@ namespace OpenSim.Region.Environment.LandManagement public void IncomingLandObjectsFromStorage(List data) { - foreach (LandData parcel in data) + for (int i = 0; i < data.Count; i++) { - IncomingLandObjectFromStorage(parcel); + try + { + IncomingLandObjectFromStorage(data[i]); + } + catch (Exception ex) + { + MainLog.Instance.Verbose("LandManager", "IncomingLandObjectsFromStorage: Exception: " + ex.ToString() ); + } } + //foreach (LandData parcel in data) + //{ + // IncomingLandObjectFromStorage(parcel); + //} } public void IncomingLandObjectFromStorage(LandData data) -- cgit v1.1