mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Fix bug in AssetService where requesting data only for an asset would throw an exception if the asset did not exist.
This commit is contained in:
@@ -146,7 +146,11 @@ namespace OpenSim.Services.AssetService
|
||||
return null;
|
||||
|
||||
AssetBase asset = m_Database.GetAsset(assetID);
|
||||
return asset.Data;
|
||||
|
||||
if (asset != null)
|
||||
return asset.Data;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual bool Get(string id, Object sender, AssetRetrieved handler)
|
||||
|
||||
Reference in New Issue
Block a user