From 1ec4f8847192030abcb96793fea8ecbb503b2daa Mon Sep 17 00:00:00 2001 From: Nuno Date: Tue, 4 May 2021 14:27:39 +0200 Subject: [PATCH] Added check if node are null --- code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp index 91e936dc6..a4135122e 100644 --- a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp +++ b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp @@ -882,9 +882,11 @@ void CGroupInSceneBubbleManager::chatOpen (uint32 nUID, const ucstring &ucsText, string::size_type endOfOriginal = ucsText.find(ucstring("}@{")); if (startTr != string::npos && endOfOriginal != string::npos) { + bool inverse = false; string lang = toUpper(ucsText.substr(startTr+2, 2)).toString(); CCDBNodeLeaf *node= NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:TRANSLATION:" + lang + ":INVERSE_DISPLAY", false); - bool inverse = node->getValueBool(); + if (node) + inverse = node->getValueBool(); if (!inverse) {