MAINT-8844 Null check (just to be on the safe side)

meow-7.2.2
andreykproductengine 2018-07-19 11:59:02 +03:00
parent ef148a73aa
commit f796c33d43
1 changed files with 2 additions and 2 deletions

View File

@ -3686,14 +3686,14 @@ BOOL LLSelectMgr::selectGetEditMoveLinksetPermissions(bool &move, bool &modify)
iter != getSelection()->end(); iter++)
{
LLSelectNode* nodep = *iter;
if (!nodep->mValid)
LLViewerObject* object = nodep->getObject();
if (!object || !nodep->mValid)
{
move = false;
modify = false;
return FALSE;
}
LLViewerObject* object = nodep->getObject();
LLViewerObject *root_object = object->getRootEdit();
bool this_object_movable = false;
if (object->permMove() && !object->isPermanentEnforced() &&