diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index fd02382..a35ed72 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -339,6 +339,11 @@ namespace OpenSim.Framework.Communications | |||
339 | public void ClearUserAgent(LLUUID agentID) | 339 | public void ClearUserAgent(LLUUID agentID) |
340 | { | 340 | { |
341 | UserProfileData profile = GetUserProfile(agentID); | 341 | UserProfileData profile = GetUserProfile(agentID); |
342 | |||
343 | if (profile == null) | ||
344 | { | ||
345 | return; | ||
346 | } | ||
342 | profile.CurrentAgent = null; | 347 | profile.CurrentAgent = null; |
343 | 348 | ||
344 | UpdateUserProfile(profile); | 349 | UpdateUserProfile(profile); |