From 8567ef3c40f5619a3e4f91f9418cccad61938ec4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 17 Nov 2015 03:00:27 +0000 Subject: work around some 'tests' errors: test for null cacheItems --- OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/CoreModules/Avatar/AvatarFactory') diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index cdcd6b9..cb210af 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs @@ -358,6 +358,9 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory // called on textures update public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems) { + if(cacheItems == null) + return false; + // npcs dont have baked cache if (((ScenePresence)sp).isNPC) return true; -- cgit v1.1