From 82b9aff6fc722ae5da43e33804801584020abfa5 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 7 Jul 2013 23:19:55 +0200 Subject: [PATCH] Sanity fix: Only request avatar properties in radar if it's not a null UUID --- indra/newview/fsradarentry.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/indra/newview/fsradarentry.cpp b/indra/newview/fsradarentry.cpp index 996ee441e9..302adbb4d8 100644 --- a/indra/newview/fsradarentry.cpp +++ b/indra/newview/fsradarentry.cpp @@ -51,11 +51,15 @@ FSRadarEntry::FSRadarEntry(const LLUUID& avid) mIsLinden(false), mAvatarNameCallbackConnection() { - // NOTE: typically we request these once on creation to avoid excess traffic/processing. - //This means updates to these properties won't typically be seen while target is in nearby range. - LLAvatarPropertiesProcessor* processor = LLAvatarPropertiesProcessor::getInstance(); - processor->addObserver(mID, this); - processor->sendAvatarPropertiesRequest(mID); + if (mID.notNull()) + { + // NOTE: typically we request these once on creation to avoid excess traffic/processing. + //This means updates to these properties won't typically be seen while target is in nearby range. + LLAvatarPropertiesProcessor* processor = LLAvatarPropertiesProcessor::getInstance(); + + processor->addObserver(mID, this); + processor->sendAvatarPropertiesRequest(mID); + } updateName(); }