Fix bug in AssetService where requesting data only for an asset would throw an exception if the asset did not exist.
parent
7fb458b055
commit
d05af4bdad
|
@ -146,7 +146,11 @@ namespace OpenSim.Services.AssetService
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
AssetBase asset = m_Database.GetAsset(assetID);
|
AssetBase asset = m_Database.GetAsset(assetID);
|
||||||
|
|
||||||
|
if (asset != null)
|
||||||
return asset.Data;
|
return asset.Data;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual bool Get(string id, Object sender, AssetRetrieved handler)
|
public virtual bool Get(string id, Object sender, AssetRetrieved handler)
|
||||||
|
|
Loading…
Reference in New Issue