summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-02-12 17:13:55 -0500
committerLoren Shih <seraph@lindenlab.com>2010-02-12 17:13:55 -0500
commit2cabf100e22d4f54ebd0ea6ea20b88985a5654c4 (patch)
treea410a41598caf63aeef39b2d0c40741ac372c10f /indra/newview/llinventorybridge.cpp
parentdce57c6b80b1286889da1a6cadda05c864a31851 (diff)
parent21be0916a4b707654e99a8c6c734d24e4bb5da7c (diff)
automated merge viewer2.0->viewer2.0
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index da95eaefca..019a4b22c3 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -2434,7 +2434,10 @@ void LLFolderBridge::pasteFromClipboard()
//we have to update inventory locally too
LLViewerInventoryItem* viitem = dynamic_cast<LLViewerInventoryItem*>(item);
llassert(viitem);
- changeItemParent(model, viitem, parent_id, FALSE);
+ if (viitem)
+ {
+ changeItemParent(model, viitem, parent_id, FALSE);
+ }
}
else
{