From 19d016233269039f625e656660cd44550ddcd17a Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 24 Aug 2021 11:38:40 +0300 Subject: [PATCH] Fix possible crash from unset variable --- code/ryzom/client/src/interface_v3/chat_text_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ec0aee822..93e55d39c 100644 --- a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp +++ b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp @@ -426,7 +426,7 @@ CViewBase *CChatTextManager::createMsgTextComplex(const ucstring &msg, NLMISC::C // Manage Translations CCDBNodeLeaf *node= NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:CHAT:SHOW_TRANSLATION_ONLY_AS_TOOLTIP_CB", false); - bool originalFirst = node->getValueBool(); + bool originalFirst = node ? node->getValueBool() : true; string::size_type startTr = msg.find(ucstring("{:")); string::size_type endOfOriginal = msg.find(ucstring("}@{"));