aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index b7f9f5a..aa68367 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -368,9 +368,12 @@ namespace OpenSim.Framework.Communications
368 368
369 if (request.Params.Count > 1) 369 if (request.Params.Count > 1)
370 { 370 {
371 IPEndPoint RemoteIPEndPoint = (IPEndPoint)request.Params[1]; 371 if (request.Params[1] != null)
372 agent.AgentIP = RemoteIPEndPoint.Address.ToString(); 372 {
373 agent.AgentPort = (uint)RemoteIPEndPoint.Port; 373 IPEndPoint RemoteIPEndPoint = (IPEndPoint)request.Params[1];
374 agent.AgentIP = RemoteIPEndPoint.Address.ToString();
375 agent.AgentPort = (uint)RemoteIPEndPoint.Port;
376 }
374 } 377 }
375 378
376 // Generate sessions 379 // Generate sessions