From 143de8db4e02d1341afc3d1fb590d2c4483d585d Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Wed, 10 Feb 2010 17:35:34 +0000 Subject: CID-96 Checker: FORWARD_NULL Function: LLDriverParam::getNextDistortion(unsigned int *, LLPolyMesh **) File: /indra/newview/lldriverparam.cpp --- indra/newview/lldriverparam.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/lldriverparam.cpp') diff --git a/indra/newview/lldriverparam.cpp b/indra/newview/lldriverparam.cpp index 8ebfa471f3..830e975e8a 100644 --- a/indra/newview/lldriverparam.cpp +++ b/indra/newview/lldriverparam.cpp @@ -432,6 +432,12 @@ const LLVector3* LLDriverParam::getNextDistortion(U32 *index, LLPolyMesh **poly_ } } + llassert(driven); + if (!driven) + { + return NULL; // shouldn't happen, but... + } + // We're already in the middle of a param's distortions, so get the next one. const LLVector3* v = driven->mParam->getNextDistortion( index, poly_mesh ); if( (!v) && (iter != mDriven.end()) ) -- cgit v1.2.3