summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2012-01-23 17:41:40 +0200
committerVadim ProductEngine <vsavchuk@productengine.com>2012-01-23 17:41:40 +0200
commit535f1b23e83dc88863715c0c5be86b19ed0e5031 (patch)
tree08f6a06506b8b96f0439b590289545e0c109d667
parenta8243c11c4188de46f3d321cb6d8c87fdae18b47 (diff)
EXP-1826 WIP Potential fix: prevent dereferencing invalid pointer.
-rw-r--r--indra/newview/llagentwearables.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index 13b62cb019..dd7e509e8d 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -816,7 +816,10 @@ void LLAgentWearables::popWearable(const LLWearableType::EType type, U32 index)
if (wearable)
{
mWearableDatas[type].erase(mWearableDatas[type].begin() + index);
- gAgentAvatarp->wearableUpdated(wearable->getType(), TRUE);
+ if (isAgentAvatarValid())
+ {
+ gAgentAvatarp->wearableUpdated(wearable->getType(), TRUE);
+ }
wearable->setLabelUpdated();
}
}