* 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.
|
// 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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue