From eabfc9ca153b1b9775bada56c2c0120768a77fda Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 7 Jun 2011 20:05:24 -0700 Subject: Added error message to help understand http://opensimulator.org/mantis/view.php?id=5527 --- OpenSim/Services/HypergridService/UserAgentService.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Services/HypergridService') diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index 29d8b3d..7ed5ea5 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs @@ -496,6 +496,11 @@ namespace OpenSim.Services.HypergridService { foreach (TravelingAgentInfo t in m_TravelingAgents.Values) { + if (t == null) + { + m_log.ErrorFormat("[USER AGENT SERVICE]: Oops! Null TravelingAgentInfo. Please report this on mantis"); + continue; + } if (t.UserID == userID && !m_GridName.Equals(t.GridExternalName)) return t.GridExternalName; } -- cgit v1.1