From df16532858bdaad841328a798d698d5c726eb472 Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 18 May 2009 23:15:50 +0000 Subject: Bug fix and config rename. --- OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/CoreModules') 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 public void Cache(AssetBase asset) { - m_Cache.Store(asset.ID, asset); + if (asset != null) + m_Cache.Store(asset.ID, asset); } public AssetBase Get(string id) -- cgit v1.1