* Handle parcel telehub location corruption gracefully. DBNull

* mySQL this time.
This commit is contained in:
Teravus Ovares
2008-06-20 18:46:43 +00:00
parent f8b1785467
commit 4448fd4b2f
2 changed files with 18 additions and 8 deletions

View File

@@ -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;
}