aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorSean Dague2008-07-17 18:59:01 +0000
committerSean Dague2008-07-17 18:59:01 +0000
commit0a01be9a860217915103e83064bd24ab802f1c05 (patch)
tree48b84c1c6b0798540ebc97c92b35037f9c53174b /OpenSim/Framework
parentadd a null check for safety (diff)
downloadopensim-SC_OLD-0a01be9a860217915103e83064bd24ab802f1c05.zip
opensim-SC_OLD-0a01be9a860217915103e83064bd24ab802f1c05.tar.gz
opensim-SC_OLD-0a01be9a860217915103e83064bd24ab802f1c05.tar.bz2
opensim-SC_OLD-0a01be9a860217915103e83064bd24ab802f1c05.tar.xz
more safety checks
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs8
1 files changed, 7 insertions, 1 deletions
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
197 { 197 {
198 get { return m_textureEntry; } 198 get { return m_textureEntry; }
199 199
200 set { m_textureEntry = value; } 200 set
201 {
202 if (value == null)
203 m_textureEntry = new byte[1];
204 else
205 m_textureEntry = value;
206 }
201 } 207 }
202 208
203 209