From 4402ce361dbf70ff4b87de3e0f515a4564b3113a Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Wed, 19 Feb 2020 04:14:54 -0500
Subject: [PATCH] Fix a crash from empty data value observed on
 some...simulator...platforms...

---
 indra/newview/llexperiencelog.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/indra/newview/llexperiencelog.cpp b/indra/newview/llexperiencelog.cpp
index daef91eb66..0a365d0c38 100644
--- a/indra/newview/llexperiencelog.cpp
+++ b/indra/newview/llexperiencelog.cpp
@@ -244,6 +244,9 @@ void LLExperienceLog::eraseExpired()
 
 bool LLExperienceLog::isExpired(const std::string& date)
 {
+	if (date.empty())
+		return true;
+
 	S32 month, day, year = 0;
 	S32 matched = sscanf(date.c_str(), "%d-%d-%d", &year, &month, &day);
 	if (matched != 3) return false;
-- 
GitLab