From 21ce2b0979451e6103c9ff1a322441d62d16d258 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Sun, 25 Nov 2007 04:33:18 +0000 Subject: Ignore nullreferenceexception in removeclient. The avatar is already gone. --- OpenSim/Region/Environment/Scenes/Scene.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 1ee0db0..735dddb 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -934,6 +934,11 @@ namespace OpenSim.Region.Environment.Scenes { avatar.Close(); } + catch (System.NullReferenceException NE) + { + //We can safely ignore null reference exceptions. It means the avatar are dead and cleaned up anyway. + + } catch (Exception e) { MainLog.Instance.Error("Scene.cs:RemoveClient exception: " + e.ToString()); -- cgit v1.1