Strengthen some assumptions.
parent
e1d98c9e4c
commit
2ebf70d719
|
@ -233,6 +233,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||||
if (sp != null)
|
if (sp != null)
|
||||||
{
|
{
|
||||||
AgentCircuitData aCircuit = scene.AuthenticateHandler.GetAgentCircuitData(sp.ControllingClient.CircuitCode);
|
AgentCircuitData aCircuit = scene.AuthenticateHandler.GetAgentCircuitData(sp.ControllingClient.CircuitCode);
|
||||||
|
if (aCircuit == null)
|
||||||
|
return;
|
||||||
|
if (aCircuit.ServiceURLs == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (aCircuit.ServiceURLs.ContainsKey("InventoryServerURI"))
|
if (aCircuit.ServiceURLs.ContainsKey("InventoryServerURI"))
|
||||||
{
|
{
|
||||||
inventoryURL = aCircuit.ServiceURLs["InventoryServerURI"].ToString();
|
inventoryURL = aCircuit.ServiceURLs["InventoryServerURI"].ToString();
|
||||||
|
|
Loading…
Reference in New Issue