* Fixed a bug in my 'user already logged in' fix that could cause a null reference exception.

This commit is contained in:
Teravus Ovares
2007-11-30 21:01:03 +00:00
parent b167507e32
commit b287015028

View File

@@ -276,14 +276,16 @@ namespace OpenSim.Framework.Data.SQLite
{
// I just added this to help the standalone login situation.
//It still needs to be looked at by a Database guy
DataTable ua = ds.Tables["useragents"];
row = ua.Rows.Find(user.UUID);
if (row == null)
{
// do nothing
}
else
{
DataTable ua = ds.Tables["useragents"];
row = ua.Rows.Find(user.UUID);
row.Delete();
ua.AcceptChanges();
}