FIRE-35393 - Don't crash when feature string is empty.

meow-7.2.2
Beq 2025-04-19 21:51:38 +01:00
parent ae197c93e2
commit f4c3f17964
1 changed files with 10 additions and 4 deletions

View File

@ -45,10 +45,16 @@ bool LLFloaterNewFeatureNotification::postBuild()
const std::string title_txt = "title_txt";
const std::string dsc_txt = "description_txt";
std::string feature = "_" + getKey().asString();
getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature));
getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature));
// <FS:Beq> FIRE-35393 stop crashing just cos whirly does something daft and blames Atlas for it
std::string feature = getKey().asString();
if(feature.empty())
{
return true;
}
// </FS:Beq>
getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + "_" + feature));
getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + "_" + feature));
if (getKey().asString() == "gltf")
{