STORM-1186 FIXED Removed the "no mCurrentRMessageTemplate" warning message.

The mCurrentRMessageTemplate member seems to only be non-NULL for a short while
after an incoming message was validated and parsed, thus there is no
guarantee that we can obtain name of the last received message at any given
time. So if we can't we'll simply return an empty string without spamming the
log with warnings.
master
Vadim ProductEngine 2011-08-01 21:33:11 +03:00
parent cfacd12d13
commit 3a82169e2e
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ const char* LLTemplateMessageReader::getMessageName() const
{
if (!mCurrentRMessageTemplate)
{
llwarns << "no mCurrentRMessageTemplate" << llendl;
// no message currently being read
return "";
}
return mCurrentRMessageTemplate->mName;