FIRE-10737; Check mCharacter for being not 0 before dereferencing it.

meow-7.2.2
Nicky 2013-07-28 13:11:14 +02:00
parent 8aa50e8604
commit b979c5104b
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ LLMotion::LLMotionInitStatus LLEmote::onInitialize(LLCharacter *character)
//-----------------------------------------------------------------------------
BOOL LLEmote::onActivate()
{
// <FS:ND> mCharacter being 0 might be one of the reasons for FIRE-10737
if( !mCharacter )
return TRUE;
// </FS:ND>
LLVisualParam* default_param = mCharacter->getVisualParam( "Express_Closed_Mouth" );
if( default_param )
{