diff options
author | Jonathan Yap <none@none> | 2011-06-03 14:41:08 -0400 |
---|---|---|
committer | Jonathan Yap <none@none> | 2011-06-03 14:41:08 -0400 |
commit | cc7a041bfe908faa1a256d13d35cb1ad17358f60 (patch) | |
tree | b6d1954926ebd6eca6341c7d8be130d36f2987dc /indra/newview | |
parent | 361384ebb9f41dbccbaab779a085edb773f0a734 (diff) |
Fix for Storm-956 crashes viewer when connected to non-LL grids
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 3832be727f..49188e46c6 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -6483,10 +6483,14 @@ void process_script_dialog(LLMessageSystem* msg, void**) LLSD payload; LLUUID object_id; - LLUUID owner_id; - msg->getUUID("Data", "ObjectID", object_id); - msg->getUUID("OwnerData", "OwnerID", owner_id); + +// For compability with OS grids first check for presence of extended packet before fetching data. + LLUUID owner_id; + if (gMessageSystem->getNumberOfBlocks("OwnerData") > 0) + { + msg->getUUID("OwnerData", "OwnerID", owner_id); + } if (LLMuteList::getInstance()->isMuted(object_id) || LLMuteList::getInstance()->isMuted(owner_id)) { |