diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs index cd475bda02..75ae18cb19 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) diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 4dc55bb392..b46bf1e3d4 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -1279,7 +1279,7 @@ ;AssetServices = "HGAssetBroker" ; If you don't want asset caching in the regions, comment this - AssetCaching = "CoreAssetCache" + AssetCache = "CoreAssetCache" ; Choose one ;UserServices = "LocalUserServicesConnector"