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 } ); } - } }