SL-16970 FIXED Crash in LLToolPie::teleportToClickedLocation

master
Mnikolenko Productengine 2022-03-03 16:40:00 +02:00
parent 8116078c72
commit 76a1b181e6
1 changed files with 1 additions and 2 deletions

View File

@ -657,8 +657,7 @@ bool LLToolPie::teleportToClickedLocation()
LLViewerObject* objp = mHoverPick.getObject();
LLViewerObject* parentp = objp ? objp->getRootEdit() : NULL;
if (objp->getAvatar() == gAgentAvatarp
|| objp == gAgentAvatarp) // ex: nametag
if (objp && (objp->getAvatar() == gAgentAvatarp || objp == gAgentAvatarp)) // ex: nametag
{
// Don't teleport to self, teleporting to other avatars is fine
return false;