diff --git a/indra/llcharacter/llpose.cpp b/indra/llcharacter/llpose.cpp index 8c7cba0a1..b770b05a7 100644 --- a/indra/llcharacter/llpose.cpp +++ b/indra/llcharacter/llpose.cpp @@ -89,6 +89,7 @@ LLJointState *LLPose::getNextJointState() //----------------------------------------------------------------------------- BOOL LLPose::addJointState(const LLPointer& jointState) { + llassert_always(jointState.notNull()); if (mJointMap.find(jointState->getJoint()->getName()) == mJointMap.end()) { mJointMap[jointState->getJoint()->getName()] = jointState; @@ -161,6 +162,9 @@ void LLPose::setWeight(F32 weight) // // there was a crash here // + llassert_always(iter->second.notNull()); + if(!iter->second) //uhoh... + continue; iter->second->setWeight(weight); } mWeight = weight;