diff --git a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp index 32558f642..5a2955722 100644 --- a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp +++ b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp @@ -431,11 +431,15 @@ CViewBase *CChatTextManager::createMsgTextComplex(const ucstring &msg, NLMISC::C if (startTr != string::npos && endOfOriginal != string::npos) { string lang = toUpper(msg.substr(startTr+2, 2)).toString(); - + + bool inverse = false; + bool hideFlag = false; CCDBNodeLeaf *nodeInverse = NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:TRANSLATION:" + lang + ":INVERSE_DISPLAY", false); - bool inverse = nodeInverse->getValueBool(); + if (nodeInverse) + inverse = nodeInverse->getValueBool(); CCDBNodeLeaf *nodeHideFlag = NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:TRANSLATION:" + lang + ":HIDE_FLAG", false); - bool hideFlag = nodeHideFlag->getValueBool(); + if (nodeHideFlag) + hideFlag = nodeHideFlag->getValueBool(); CViewBase *vt = createMsgTextSimple(msg.substr(0, startTr), col, justified, NULL); para->addChild(vt); diff --git a/code/ryzom/client/src/interface_v3/chat_window.cpp b/code/ryzom/client/src/interface_v3/chat_window.cpp index 51e4a96a3..9340377f9 100644 --- a/code/ryzom/client/src/interface_v3/chat_window.cpp +++ b/code/ryzom/client/src/interface_v3/chat_window.cpp @@ -218,8 +218,10 @@ void CChatWindow::displayMessage(const ucstring &msg, NLMISC::CRGBA col, CChatGr + bool noTranslation = false; CCDBNodeLeaf *nodeNoTranslation = NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:TRANSLATION:" + toUpper(CChatGroup::groupTypeToString(gt)) + ":DISABLE", false); - bool noTranslation = nodeNoTranslation->getValueBool(); + if (nodeNoTranslation) + noTranslation = nodeNoTranslation->getValueBool(); ucstring msgNoTranslate = msg;