diff options
| author | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-08-12 15:56:51 +0300 | 
|---|---|---|
| committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-08-12 15:56:51 +0300 | 
| commit | dd692f17ab12d44177253e9dde33c93e37caef5e (patch) | |
| tree | 6f60375e475e4853a694d6d1d22e18bbff99d9c0 /indra/newview | |
| parent | 7a0b016c8c4b5c0e730ea6735205cfc84725737c (diff) | |
EXT-8628 FIXED Crash in LLVOAvatarSelf::getAttachedPointName().
The crash was reproducible only on startup. Apparently, gAgentAvatarp was not valid at that point.
Worked around by checking gAgentAvatarp for being valid.
I didn't investigate what the root cause of the problem was (probably the new multi-attachments implementation), I just needed my viewer to work.
Reviewed by Seraph at https://codereview.productengine.com/secondlife/r/847/.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 38f3521b2d..9bbc6514b4 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -3985,6 +3985,11 @@ std::string LLObjectBridge::getLabelSuffix() const  {  	if (get_is_item_worn(mUUID))  	{ +		if (!isAgentAvatarValid()) +		{ +			return LLItemBridge::getLabelSuffix() + LLTrans::getString("worn"); +		} +  		std::string attachment_point_name = gAgentAvatarp->getAttachedPointName(mUUID);  		// e.g. "(worn on ...)" / "(attached to ...)" | 
