From a84cad1d7d8f02e7d9802e1f787ecf0789bab076 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 26 Mar 2015 21:17:35 +0100 Subject: [PATCH] FIRE-15787: Crash fix --- indra/newview/lllocalbitmaps.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp index fa21ba3840..6bf8de0124 100755 --- a/indra/newview/lllocalbitmaps.cpp +++ b/indra/newview/lllocalbitmaps.cpp @@ -534,6 +534,13 @@ void LLLocalBitmap::updateUserSculpts(LLUUID old_id, LLUUID new_id) void LLLocalBitmap::updateUserLayers(LLUUID old_id, LLUUID new_id, LLWearableType::EType type) { + // FIRE-15787: Crash fix + if (!gAgentAvatarp) + { + return; + } + // + U32 count = gAgentWearables.getWearableCount(type); for(U32 wearable_iter = 0; wearable_iter < count; wearable_iter++) {