mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Strengthen some assumptions.
This commit is contained in:
@@ -233,6 +233,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
if (sp != null)
|
||||
{
|
||||
AgentCircuitData aCircuit = scene.AuthenticateHandler.GetAgentCircuitData(sp.ControllingClient.CircuitCode);
|
||||
if (aCircuit == null)
|
||||
return;
|
||||
if (aCircuit.ServiceURLs == null)
|
||||
return;
|
||||
|
||||
if (aCircuit.ServiceURLs.ContainsKey("InventoryServerURI"))
|
||||
{
|
||||
inventoryURL = aCircuit.ServiceURLs["InventoryServerURI"].ToString();
|
||||
|
||||
Reference in New Issue
Block a user