summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-03-27 22:49:56 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-03-27 23:52:08 +0200
commitf382180eb584d8e8690935a63bda3039fe8bccc9 (patch)
tree5d8b46def3e96162486792698dc79f3769000dd4 /indra/llui
parent977168eda4a3ae22cdd8e50e682dd31c466f306a (diff)
viewer#1069 Crash after getting list of notification files
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llnotifications.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index 25062f2cad..1ccd664022 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -1547,6 +1547,11 @@ bool LLNotifications::loadTemplates()
// specific skin.
std::vector<std::string> search_paths =
gDirUtilp->findSkinnedFilenames(LLDir::XUI, "notifications.xml", LLDir::ALL_SKINS);
+ if (search_paths.empty())
+ {
+ LLError::LLUserWarningMsg::show(LLTrans::getString("MBMissingFile"));
+ LL_ERRS() << "Problem finding notifications.xml" << LL_ENDL;
+ }
std::string base_filename = search_paths.front();
LLXMLNodePtr root;