From dd070683e8aedac36919144ca13a7c9a405d653a Mon Sep 17 00:00:00 2001
From: Merov Linden <merov@lindenlab.com>
Date: Fri, 11 Apr 2014 20:25:15 -0700
Subject: [PATCH] DD-59 : WIP : Fixed consistency check bug

---
 indra/newview/llinventoryfunctions.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index 0aba4f57a0b..ae9480326ce 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -173,7 +173,7 @@ void update_marketplace_category(const LLUUID& cat_id)
     if (LLMarketplaceData::instance().isListed(listing_uuid))
     {
         LLUUID version_folder_uuid = LLMarketplaceData::instance().getVersionFolderID(listing_uuid);
-        if (!gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid))
+        if (version_folder_uuid.notNull() && !gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid))
         {
             // *TODO : Confirm with Producer that this is what we want to happen in that case!
             llinfos << "Merov : Delisting as the version folder is not under the listing folder anymore!!" << llendl;
-- 
GitLab