From fd035ec1f85eaff3f4d94541fbefb9d9d72b085b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 14 May 2008 02:14:05 +0000 Subject: * Applying Melanie's FriendList related crash patch. She discovered that .NET throws a different error then mono does. Thanks Melanie! --- .../Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Friends') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index dd6a92e..9078a14 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -256,6 +256,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends // prevents a sim crash. m_log.Info("[FRIEND]: Unable to enumerate last friendlist user. User logged off"); } + catch (ArgumentOutOfRangeException) + { + // Ignore the index out of range exception. + // This causes friend lists to get out of sync slightly.. however + // prevents a sim crash. + m_log.Info("[FRIEND]: Unable to enumerate last friendlist user. User logged off"); + } } } @@ -498,4 +505,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends #endregion } -} \ No newline at end of file +} -- cgit v1.1