CHUI-864 ([crashhunters] crash in LLConversationLog): Found a probable cause. It is likely that the user was missing the user settings variable called 'KeepConversationLogTranscripts.' If this variable doesn't exist or is deleted then the CHUI viewer would try to extract data from this non-existent variable. Resolution, now perform a check to make sure the 'KeepConversationLogTranscripts' settings variable exists before extracting data.
parent
a17ed876c8
commit
73f68342f6
|
|
@ -194,14 +194,17 @@ LLConversationLog::LLConversationLog() :
|
|||
mAvatarNameCacheConnection(),
|
||||
mLoggingEnabled(false)
|
||||
{
|
||||
LLControlVariable * keep_log_ctrlp = gSavedPerAccountSettings.getControl("KeepConversationLogTranscripts").get();
|
||||
S32 log_mode = keep_log_ctrlp->getValue();
|
||||
keep_log_ctrlp->getSignal()->connect(boost::bind(&LLConversationLog::enableLogging, this, _2));
|
||||
if (log_mode > 0)
|
||||
if(gSavedPerAccountSettings.controlExists("KeepConversationLogTranscripts"))
|
||||
{
|
||||
loadFromFile(getFileName());
|
||||
LLControlVariable * keep_log_ctrlp = gSavedPerAccountSettings.getControl("KeepConversationLogTranscripts").get();
|
||||
S32 log_mode = keep_log_ctrlp->getValue();
|
||||
keep_log_ctrlp->getSignal()->connect(boost::bind(&LLConversationLog::enableLogging, this, _2));
|
||||
if (log_mode > 0)
|
||||
{
|
||||
loadFromFile(getFileName());
|
||||
|
||||
enableLogging(log_mode);
|
||||
enableLogging(log_mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue