diff options
author | Teravus Ovares | 2008-06-20 18:46:43 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-06-20 18:46:43 +0000 |
commit | 4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c (patch) | |
tree | b8b74dce7a857331178e0170790a373ce05b0ec3 /OpenSim/Data/SQLite/SQLiteRegionData.cs | |
parent | * Handle parcel telehub location corruption gracefully. DBNull (diff) | |
download | opensim-SC_OLD-4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c.zip opensim-SC_OLD-4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c.tar.gz opensim-SC_OLD-4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c.tar.bz2 opensim-SC_OLD-4448fd4b2f3fb85cd9262e8d8428bdf4c9ca8b2c.tar.xz |
* Handle parcel telehub location corruption gracefully. DBNull
* mySQL this time.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteRegionData.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
981 | newData.userLookAt = | 981 | newData.userLookAt = |
982 | new LLVector3(Convert.ToSingle(row["UserLookAtX"]), Convert.ToSingle(row["UserLookAtY"]), | 982 | new LLVector3(Convert.ToSingle(row["UserLookAtX"]), Convert.ToSingle(row["UserLookAtY"]), |
983 | Convert.ToSingle(row["UserLookAtZ"])); | 983 | Convert.ToSingle(row["UserLookAtZ"])); |
984 | m_log.ErrorFormat("[PARCEL]: unable to get parcel telehub settings for {1}", newData.landName); | 984 | |
985 | } | 985 | } |
986 | catch (InvalidCastException) | 986 | catch (InvalidCastException) |
987 | { | 987 | { |
988 | m_log.ErrorFormat("[PARCEL]: unable to get parcel telehub settings for {1}", newData.landName); | ||
988 | newData.userLocation = LLVector3.Zero; | 989 | newData.userLocation = LLVector3.Zero; |
989 | newData.userLookAt = LLVector3.Zero; | 990 | newData.userLookAt = LLVector3.Zero; |
990 | } | 991 | } |