diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
index 99e69838ab..caeabb7abf 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
@@ -116,6 +116,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
public AssetBase Get(string id)
{
+ if (String.IsNullOrEmpty(m_serverUrl))
+ {
+ m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
+ throw new InvalidOperationException();
+ }
+
// Cache fetch
if (m_cache != null)
{
@@ -142,6 +148,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
///
public AssetMetadata GetMetadata(string id)
{
+ if (String.IsNullOrEmpty(m_serverUrl))
+ {
+ m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
+ throw new InvalidOperationException();
+ }
+
AssetMetadata metadata = null;
// Cache fetch
@@ -213,6 +225,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
/// True if the id was parseable, false otherwise
public bool Get(string id, Object sender, AssetRetrieved handler)
{
+ if (String.IsNullOrEmpty(m_serverUrl))
+ {
+ m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
+ throw new InvalidOperationException();
+ }
+
// Cache fetch
if (m_cache != null)
{
@@ -243,6 +261,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
///
public string Store(AssetBase asset)
{
+ if (String.IsNullOrEmpty(m_serverUrl))
+ {
+ m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
+ throw new InvalidOperationException();
+ }
+
bool storedInCache = false;
string errorMessage = null;
@@ -375,6 +399,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
///
public bool Delete(string id)
{
+ if (String.IsNullOrEmpty(m_serverUrl))
+ {
+ m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
+ throw new InvalidOperationException();
+ }
+
//string errorMessage = String.Empty;
string url = m_serverUrl + id;