* Fixed a bug in my 'user already logged in' fix that could cause a null reference exception.
parent
b167507e32
commit
b287015028
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue