more safety checks

0.6.0-stable
Sean Dague 2008-07-17 18:59:01 +00:00
parent db9e6584bf
commit 0a01be9a86
1 changed files with 7 additions and 1 deletions

View File

@ -197,7 +197,13 @@ namespace OpenSim.Framework
{
get { return m_textureEntry; }
set { m_textureEntry = value; }
set
{
if (value == null)
m_textureEntry = new byte[1];
else
m_textureEntry = value;
}
}