diff options
author | Merov Linden <merov@lindenlab.com> | 2014-12-29 14:42:31 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-12-29 14:42:31 -0800 |
commit | 37feae82998ad7373a354d9b8c295001b9befc9a (patch) | |
tree | d00364eb2094c4653cf43cf775103d15ad91a2cb /indra | |
parent | 8de34ade3d40a4a174c135609284a52b342b0624 (diff) |
Fix for potential crash on exit
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llviewerinventory.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index dcd986a5c7..a424e3c15b 100755 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -810,8 +810,13 @@ bool LLViewerInventoryCategory::exportFileLocal(LLFILE* fp) const bool LLViewerInventoryCategory::acceptItem(LLInventoryItem* inv_item) { - bool accept = true; + if (!inv_item) + { + return false; + } + // Only stock folders have limitation on which item they will accept + bool accept = true; if (getPreferredType() == LLFolderType::FT_MARKETPLACE_STOCK) { // If the item is copyable (i.e. non stock) do not accept the drop in a stock folder |