diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-16 18:28:06 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-16 18:28:06 +0300 |
commit | d2e242ab632a051e0b357efa1fdd0a1a64027f44 (patch) | |
tree | 00fe3329e9d46edee9ce07f13eee562860d711af /indra/newview/llvoavatar.cpp | |
parent | 28ae135375c42d6cfd89fc8d68cd80f4685b93eb (diff) |
SL-17412 Crash at isWearingWearableType
Related to "Allow Select Avatar" feature, selection manager made avatar to persist longer.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index c5c1c3b57a..df34dda65e 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -763,6 +763,13 @@ std::string LLVOAvatar::avString() const void LLVOAvatar::debugAvatarRezTime(std::string notification_name, std::string comment) { + if (gDisconnected) + { + // If we disconected, these values are likely to be invalid and + // avString() might crash due to a dead sAvatarDictionary + return; + } + LL_INFOS("Avatar") << "REZTIME: [ " << (U32)mDebugExistenceTimer.getElapsedTimeF32() << "sec ]" << avString() |