diff --git a/indra/newview/alaoengine.cpp b/indra/newview/alaoengine.cpp index 8442770c2d71207a8c6fb159d24a52739677e4df..91b54210c7ab33ff29fdd45884b42b7a2c0b161c 100644 --- a/indra/newview/alaoengine.cpp +++ b/indra/newview/alaoengine.cpp @@ -179,10 +179,10 @@ bool ALAOEngine::foreignAnimations(const LLUUID& seat) } // find the source object where the animation came from - LLViewerObject* source=gObjectList.findObject(animation_source.first); + LLViewerObject* source = gObjectList.findObject(animation_source.first); // proceed if it's not an attachment - if(!source->isAttachment()) + if(source && !source->isAttachment()) { // get the source's root prim LLViewerObject* sourceRoot=dynamic_cast<LLViewerObject*>(source->getRoot());