From db9e6584bf5747d4f52d38e81d0f7d2eb3b09142 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 17 Jul 2008 18:58:58 +0000 Subject: add a null check for safety --- OpenSim/Framework/PrimitiveBaseShape.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index bdd9858..ffdd40f 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -838,6 +838,9 @@ namespace OpenSim.Framework public void ReadInExtraParamsBytes(byte[] data) { + if (data == null) + return; + const ushort FlexiEP = 0x10; const ushort LightEP = 0x20; const ushort SculptEP = 0x30; -- cgit v1.1