From a8437a7636c065ae06e53281db1be94dd4ae9e88 Mon Sep 17 00:00:00 2001
From: andreykproductengine <andreykproductengine@lindenlab.com>
Date: Wed, 29 Jan 2020 18:02:41 +0200
Subject: [PATCH] potential crashfix

---
 indra/newview/llimprocessing.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp
index d3537dc24e8..c3375a37796 100644
--- a/indra/newview/llimprocessing.cpp
+++ b/indra/newview/llimprocessing.cpp
@@ -1569,6 +1569,12 @@ void LLIMProcessing::requestOfflineMessagesCoro(std::string url)
         return;
     }
 
+    if (gAgent.getRegion() == NULL)
+    {
+        LL_WARNS("Messaging") << "Region null while attempting to load messages." << LL_ENDL;
+        return;
+    }
+
     LL_INFOS("Messaging") << "Processing offline messages." << LL_ENDL;
 
     std::vector<U8> data;
-- 
GitLab