diff options
author | Josh Bell <josh@lindenlab.com> | 2007-01-09 20:19:31 +0000 |
---|---|---|
committer | Josh Bell <josh@lindenlab.com> | 2007-01-09 20:19:31 +0000 |
commit | 8c344f4da02105428c5933501d028a4a8908a657 (patch) | |
tree | 1463f67247c48a7420620917aa7fde5d6a810820 /indra/newview/llpreview.cpp | |
parent | 8534623734e64387736ddb76683939104d796ade (diff) |
svn merge -r 56560:56599 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance
Diffstat (limited to 'indra/newview/llpreview.cpp')
-rw-r--r-- | indra/newview/llpreview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpreview.cpp b/indra/newview/llpreview.cpp index 5cc2d2e39f..82974da634 100644 --- a/indra/newview/llpreview.cpp +++ b/indra/newview/llpreview.cpp @@ -157,6 +157,16 @@ void LLPreview::onCommit() LLViewerInventoryItem* item = getItem(); if(item) { + if (!item->isComplete()) + { + // We are attempting to save an item that was never loaded + llwarns << "LLPreview::onCommit() called with mIsComplete == FALSE" + << " Type: " << item->getType() + << " ID: " << item->getUUID() + << llendl; + return; + } + LLPointer<LLViewerInventoryItem> new_item = new LLViewerInventoryItem(item); BOOL has_sale_info = FALSE; LLSaleInfo sale_info; |