From 0a01be9a860217915103e83064bd24ab802f1c05 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 17 Jul 2008 18:59:01 +0000 Subject: [PATCH] more safety checks --- OpenSim/Framework/PrimitiveBaseShape.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index ffdd40f5d2..5657b66e92 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -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; + } }