From 0a01be9a860217915103e83064bd24ab802f1c05 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 17 Jul 2008 18:59:01 +0000 Subject: 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 ffdd40f..5657b66 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; + } } -- cgit v1.1