avoid possible crash

This commit is contained in:
Seth Alves 2019-01-30 14:56:50 -08:00
parent c6f44234f8
commit 30d9fe705e

View file

@ -5309,7 +5309,7 @@ void MyAvatar::releaseGrab(const QUuid& grabID) {
grab->setReleased(true);
bool success;
SpatiallyNestablePointer target = SpatiallyNestable::findByID(grab->getTargetID(), success);
if (target) {
if (target && success) {
target->disableGrab(grab);
}
}