From 4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 20 Jun 2008 18:46:43 +0000 Subject: * Handle parcel telehub location corruption gracefully. DBNull * mySQL this time. --- OpenSim/Data/SQLite/SQLiteRegionData.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Data/SQLite/SQLiteRegionData.cs') diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 36202b9..b7086bd 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs @@ -981,10 +981,11 @@ namespace OpenSim.Data.SQLite newData.userLookAt = new LLVector3(Convert.ToSingle(row["UserLookAtX"]), Convert.ToSingle(row["UserLookAtY"]), Convert.ToSingle(row["UserLookAtZ"])); - m_log.ErrorFormat("[PARCEL]: unable to get parcel telehub settings for {1}", newData.landName); + } catch (InvalidCastException) { + m_log.ErrorFormat("[PARCEL]: unable to get parcel telehub settings for {1}", newData.landName); newData.userLocation = LLVector3.Zero; newData.userLookAt = LLVector3.Zero; } -- cgit v1.1