Fix bug in AssetService where requesting data only for an asset would throw an exception if the asset did not exist.

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-15 22:14:34 +00:00
parent eafcc6f2b2
commit 2e9c57f644
1 changed files with 5 additions and 1 deletions

View File

@ -146,7 +146,11 @@ namespace OpenSim.Services.AssetService
return null;
AssetBase asset = m_Database.GetAsset(assetID);
if (asset != null)
return asset.Data;
else
return null;
}
public virtual bool Get(string id, Object sender, AssetRetrieved handler)