aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules
diff options
context:
space:
mode:
authorUbitUmarov2018-01-15 18:57:15 +0000
committerUbitUmarov2018-01-15 18:57:15 +0000
commitae04a24e7a2b9fee4bfb4ac3ca894c06946fea17 (patch)
tree1d401ab50140fd8f8a9818d15b79c5e9803e9387 /OpenSim/Region/PhysicsModules
parentreplace Newtonsoft.Json and Zlib.net with target .net4.6 (diff)
downloadopensim-SC-ae04a24e7a2b9fee4bfb4ac3ca894c06946fea17.zip
opensim-SC-ae04a24e7a2b9fee4bfb4ac3ca894c06946fea17.tar.gz
opensim-SC-ae04a24e7a2b9fee4bfb4ac3ca894c06946fea17.tar.bz2
opensim-SC-ae04a24e7a2b9fee4bfb4ac3ca894c06946fea17.tar.xz
recover a lost null check
Diffstat (limited to 'OpenSim/Region/PhysicsModules')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
index 451345f..b694270 100644
--- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
+++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs
@@ -340,7 +340,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
340 faces = new List<Face>(); 340 faces = new List<Face>();
341 OSD meshOsd = null; 341 OSD meshOsd = null;
342 342
343 if (primShape.SculptData.Length <= 0) 343 if (primShape.SculptData == null || primShape.SculptData.Length <= 0)
344 { 344 {
345// m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName); 345// m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName);
346 return false; 346 return false;
@@ -363,6 +363,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
363 catch (Exception e) 363 catch (Exception e)
364 { 364 {
365 m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString()); 365 m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString());
366 return false;
366 } 367 }
367 368
368 start = data.Position; 369 start = data.Position;