From 4758355c599d1487c11884d3f700981e011cb7b7 Mon Sep 17 00:00:00 2001 From: Rye Mutt Date: Wed, 17 May 2023 10:05:36 -0400 Subject: Fix crash during avatar profile callback (#218) --- indra/newview/llvoavatar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'indra') 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); + } }); } } -- cgit v1.2.3