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

afrisby
Teravus Ovares 2007-11-30 21:01:03 +00:00
parent b167507e32
commit b287015028
1 changed files with 4 additions and 2 deletions

View File

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