diff options
Diffstat (limited to 'OpenSim/Services/AssetService')
-rw-r--r-- | OpenSim/Services/AssetService/AssetService.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs index 233fa62..d6e5141 100644 --- a/OpenSim/Services/AssetService/AssetService.cs +++ b/OpenSim/Services/AssetService/AssetService.cs | |||
@@ -32,6 +32,7 @@ using log4net; | |||
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Data; | 33 | using OpenSim.Data; |
34 | using OpenSim.Services.Interfaces; | 34 | using OpenSim.Services.Interfaces; |
35 | using OpenMetaverse; | ||
35 | 36 | ||
36 | namespace OpenSim.Services.AssetService | 37 | namespace OpenSim.Services.AssetService |
37 | { | 38 | { |
@@ -63,7 +64,12 @@ namespace OpenSim.Services.AssetService | |||
63 | 64 | ||
64 | public AssetBase Get(string id) | 65 | public AssetBase Get(string id) |
65 | { | 66 | { |
66 | return null; | 67 | UUID assetID; |
68 | |||
69 | if (!UUID.TryParse(id, out assetID)) | ||
70 | return null; | ||
71 | |||
72 | return m_Database.FetchAsset(assetID); | ||
67 | } | 73 | } |
68 | 74 | ||
69 | public AssetMetadata GetMetadata(string id) | 75 | public AssetMetadata GetMetadata(string id) |