diff --git a/indra/llcharacter/llcharacter.cpp b/indra/llcharacter/llcharacter.cpp
index 4df975ecc5d425ec4e0af8387b9efd2b9290a121..3e58d9b3cd016577b8866c31c32fbd77cefadc95 100644
--- a/indra/llcharacter/llcharacter.cpp
+++ b/indra/llcharacter/llcharacter.cpp
@@ -501,7 +501,7 @@ void LLCharacter::updateVisualParams()
 }
  
 LLAnimPauseRequest LLCharacter::requestPause()
-{
+{X
 	mMotionController.pauseAllMotions();
 	return mPauseRequest;
 }
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 15fc995ecf2393f35f76e56d09c06912c2aa4ed5..403bff5a9e0a7a9544bbf412f28c1d6effa7b782 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -1309,7 +1309,10 @@ BOOL LLVOVolume::calcLOD()
             {
                 LLViewerObject* childp = *iter;
                 LLVOVolume *child_volp = dynamic_cast<LLVOVolume*>(childp);
-                total_tris += child_volp->getTriangleCount();
+                if (child_volp)
+                {
+                    total_tris += child_volp->getTriangleCount();
+                }
             }
             setDebugText(llformat("TRIS %d TOTAL %d", getTriangleCount(), total_tris));
         }