diff options
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserData.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 448ef85..94dc1d3 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs | |||
@@ -567,6 +567,10 @@ namespace OpenSim.Data.SQLite | |||
567 | /// <param name="agent">The agent to add to the database</param> | 567 | /// <param name="agent">The agent to add to the database</param> |
568 | override public void AddNewUserAgent(UserAgentData agent) | 568 | override public void AddNewUserAgent(UserAgentData agent) |
569 | { | 569 | { |
570 | UUID zero = UUID.Zero; | ||
571 | if (agent.SessionID == zero || agent.ProfileID == zero) | ||
572 | return; | ||
573 | |||
570 | DataTable agents = ds.Tables["useragents"]; | 574 | DataTable agents = ds.Tables["useragents"]; |
571 | lock (ds) | 575 | lock (ds) |
572 | { | 576 | { |