mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-19 18:49:06 +02:00
never process null avatar ID in avatar manager
This commit is contained in:
parent
6cf4ff1daf
commit
8f154321a4
1 changed files with 5 additions and 0 deletions
|
@ -130,6 +130,11 @@ void AvatarHashMap::processAvatarIdentityPacket(QSharedPointer<ReceivedMessage>
|
||||||
// peek the avatar UUID from the incoming packet
|
// peek the avatar UUID from the incoming packet
|
||||||
QUuid identityUUID = QUuid::fromRfc4122(message->peek(NUM_BYTES_RFC4122_UUID));
|
QUuid identityUUID = QUuid::fromRfc4122(message->peek(NUM_BYTES_RFC4122_UUID));
|
||||||
|
|
||||||
|
if (identityUUID.isNull()) {
|
||||||
|
qCDebug(avatars) << "Refusing to process identity packet for null avatar ID";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// make sure this isn't for an ignored avatar
|
// make sure this isn't for an ignored avatar
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
static auto EMPTY = QUuid();
|
static auto EMPTY = QUuid();
|
||||||
|
|
Loading…
Reference in a new issue