summaryrefslogtreecommitdiff
path: root/indra/llui/llnotifications.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-07-19 17:22:12 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-07-19 17:22:12 -0700
commitd603085c0332f5d615cc6583e13ed0aa5ab21908 (patch)
treebac8d5e6b99643448579060d38a2e69fab65caf7 /indra/llui/llnotifications.cpp
parent474457ea7ea1bd178682788426a4cf40c3fffdcd (diff)
parent4339600d43601f07d01c676cce5da17c2758c4cb (diff)
Merge with dessie/viewer-release
Diffstat (limited to 'indra/llui/llnotifications.cpp')
-rw-r--r--indra/llui/llnotifications.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index 1773a1e86a..75b92e47da 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -35,6 +35,7 @@
#include "llnotifications.h"
#include "llavatarnamecache.h"
+#include "llinstantmessage.h"
#include "llcachename.h"
#include "llxmlnode.h"
#include "lluictrl.h"
@@ -43,6 +44,7 @@
#include "llsdserialize.h"
#include "lltrans.h"
#include "llnotificationslistener.h"
+#include "llstring.h"
#include <algorithm>
#include <boost/regex.hpp>
@@ -1516,6 +1518,14 @@ void LLPostponedNotification::onAvatarNameCache(const LLUUID& agent_id,
const LLAvatarName& av_name)
{
std::string name = av_name.getCompleteName();
+
+ // from PE merge - we should figure out if this is the right thing to do
+ if (name.empty())
+ {
+ llwarns << "Empty name received for Id: " << agent_id << llendl;
+ name = SYSTEM_FROM;
+ }
+
finalizeName(name);
}