mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* Fixed a bug in my 'user already logged in' fix that could cause a null reference exception.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user