aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PrimitiveBaseShape.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index bdd9858..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
@@ -838,6 +844,9 @@ namespace OpenSim.Framework
838 844
839 public void ReadInExtraParamsBytes(byte[] data) 845 public void ReadInExtraParamsBytes(byte[] data)
840 { 846 {
847 if (data == null)
848 return;
849
841 const ushort FlexiEP = 0x10; 850 const ushort FlexiEP = 0x10;
842 const ushort LightEP = 0x20; 851 const ushort LightEP = 0x20;
843 const ushort SculptEP = 0x30; 852 const ushort SculptEP = 0x30;