diff options
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 36fad48..aef0b91 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -413,7 +413,14 @@ namespace OpenSim | |||
413 | 413 | ||
414 | private void HandleClearAssets(string module, string[] args) | 414 | private void HandleClearAssets(string module, string[] args) |
415 | { | 415 | { |
416 | m_assetCache.Clear(); | 416 | if (AssetCache != null) |
417 | { | ||
418 | AssetCache.Clear(); | ||
419 | } | ||
420 | else | ||
421 | { | ||
422 | m_log.Info("Asset cache is not configured."); | ||
423 | } | ||
417 | } | 424 | } |
418 | 425 | ||
419 | private void HandleForceUpdate(string module, string[] args) | 426 | private void HandleForceUpdate(string module, string[] args) |
@@ -787,7 +794,14 @@ namespace OpenSim | |||
787 | switch (showParams[0]) | 794 | switch (showParams[0]) |
788 | { | 795 | { |
789 | case "assets": | 796 | case "assets": |
790 | m_assetCache.ShowState(); | 797 | if (AssetCache != null) |
798 | { | ||
799 | AssetCache.ShowState(); | ||
800 | } | ||
801 | else | ||
802 | { | ||
803 | m_log.Info("Asset cache is not configured."); | ||
804 | } | ||
791 | break; | 805 | break; |
792 | 806 | ||
793 | case "users": | 807 | case "users": |