From 31cba5aa6632813c739ea943c0edc15096fcf99f Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 4 Feb 2014 04:20:37 +0000 Subject: [PATCH] Add one check for a blank URL because the module wasn't quite sure not to work when unconfigured :| --- .../Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs b/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs index 6ef5e39ea8..2f2b845603 100644 --- a/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs @@ -148,6 +148,9 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures public void Store(UUID agentId, WearableCacheItem[] data) { + if (m_URL == String.Empty) + return null; + MemoryStream bakeStream = new MemoryStream(); XmlTextWriter bakeWriter = new XmlTextWriter(bakeStream, null); @@ -184,6 +187,5 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures } ); } - } }