diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs index cd475bd..75ae18c 100644 --- a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | |||
@@ -109,7 +109,8 @@ namespace OpenSim.Region.CoreModules.Asset | |||
109 | 109 | ||
110 | public void Cache(AssetBase asset) | 110 | public void Cache(AssetBase asset) |
111 | { | 111 | { |
112 | m_Cache.Store(asset.ID, asset); | 112 | if (asset != null) |
113 | m_Cache.Store(asset.ID, asset); | ||
113 | } | 114 | } |
114 | 115 | ||
115 | public AssetBase Get(string id) | 116 | public AssetBase Get(string id) |