potencial null ref

LSLKeyTest
UbitUmarov 2016-08-24 01:40:35 +01:00
parent 55680c9cd6
commit 3c30223c77
1 changed files with 3 additions and 2 deletions

View File

@ -106,17 +106,18 @@ namespace OpenSim.Services.Connectors.Simulation
public bool CreateAgent(GridRegion source, GridRegion destination, AgentCircuitData aCircuit, uint flags, EntityTransferContext ctx, out string myipaddress, out string reason) public bool CreateAgent(GridRegion source, GridRegion destination, AgentCircuitData aCircuit, uint flags, EntityTransferContext ctx, out string myipaddress, out string reason)
{ {
m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: Creating agent at {0}", destination.ServerURI);
reason = String.Empty; reason = String.Empty;
myipaddress = String.Empty; myipaddress = String.Empty;
if (destination == null) if (destination == null)
{ {
reason = "Destination not found"; reason = "Destination not found";
m_log.Debug("[REMOTE SIMULATION CONNECTOR]: Given destination is null"); m_log.Debug("[REMOTE SIMULATION CONNECTOR]: Create agent destination is null");
return false; return false;
} }
m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: Creating agent at {0}", destination.ServerURI);
string uri = destination.ServerURI + AgentPath() + aCircuit.AgentID + "/"; string uri = destination.ServerURI + AgentPath() + aCircuit.AgentID + "/";
try try