summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2023-05-17 10:05:36 -0400
committerGitHub <noreply@github.com>2023-05-17 09:05:36 -0500
commit4758355c599d1487c11884d3f700981e011cb7b7 (patch)
tree6f68637f4cfde6dece55728b49baae148a4201f9 /indra
parentee0b330b2d6a3433e3bac6ab21cf6cc3e580c605 (diff)
Fix crash during avatar profile callback (#218)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoavatar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 341ef57d8c..36f3a1a2c6 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -11434,7 +11434,10 @@ void LLVOAvatar::readProfileQuery(S32 retries)
LL::WorkQueue::getInstance("mainloop")->post([id, retries] {
LLVOAvatar* avatar = (LLVOAvatar*) gObjectList.findObject(id);
- avatar->readProfileQuery(retries);
+ if(avatar)
+ {
+ avatar->readProfileQuery(retries);
+ }
});
}
}