* Resolve Mantis 667 by not passing on textures with no actual data onto TextureSender

0.6.0-stable
Justin Clarke Casey 2008-02-25 19:10:02 +00:00
parent 5b3897a4af
commit 84c86c7bdd
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@ namespace OpenSim.Region.Environment.Modules
if (m_textureSenders.TryGetValue(textureID, out textureSender))
{
if (texture == null)
// XXX It may be perfectly valid for a texture to have no data... but if we pass
// this on to the TextureSender it will blow up, so just discard for now.
// Needs investigation.
if (texture == null || texture.Data == null)
{
// Right now, leaving it up to lower level asset server code to post the fact that
// this texture could not be found