avoid possible crash

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

View file

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