summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-15 22:31:02 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-09-16 01:04:02 +0300
commit96d7cd29f636fa570498b7fa4b71eabc4e1923eb (patch)
tree499fae3506bd58f90d71b362adecb7835781194c /indra/llcommon
parentab3261f901d34fab154c63edd3248c6231dc0798 (diff)
SL-16004 Fix bugsplat displaying wrong top function
bugsplat shows KERNELBASE!RaiseException and flush() insread of forceErrorLLError, function crashes too early.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llerror.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp
index 8355df9045..b45411ad9d 100644
--- a/indra/llcommon/llerror.cpp
+++ b/indra/llcommon/llerror.cpp
@@ -1397,7 +1397,10 @@ namespace LLError
if (site.mLevel == LEVEL_ERROR)
{
g->mFatalMessage = message;
- s->mCrashFunction(message);
+ if (s->mCrashFunction)
+ {
+ s->mCrashFunction(message);
+ }
}
}
}