- Fixed crashing error when a tabard was showing in the guild store

Yaron Kfir [08-07-14 - 17:28]
 - Fixed crashing error when a tabard was showing in the guild store
Filename
Changelog
PriceTracker.lua
diff --git a/Changelog b/Changelog
index 89b0041..39b8a36 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,8 @@
 Changelog

+v2.1
+ - Fixed crashing error when a tabard was showing in the guild store
+
 v2.0
  - Support API version 100008
  - Preserve price history from previous API version
diff --git a/PriceTracker.lua b/PriceTracker.lua
index 15de4cb..fd3f679 100644
--- a/PriceTracker.lua
+++ b/PriceTracker.lua
@@ -379,7 +379,11 @@ function PriceTracker:GetItemLink(item)
 		return GetStoreItemLink(item.dataEntry.data.slotIndex, LINK_STYLE_DEFAULT)
 	end
 	if parentName == "ZO_TradingHouseItemPaneSearchResultsContents" then
-		return GetTradingHouseSearchResultItemLink(item.dataEntry.data.slotIndex)
+		if item.dataEntry.data.timeRemaining > 0 then
+			return GetTradingHouseSearchResultItemLink(item.dataEntry.data.slotIndex)
+		else
+			return nil
+		end
 	end
 	if parentName == "ZO_TradingHousePostedItemsListContents" then
 		return GetTradingHouseListingItemLink(item.dataEntry.data.slotIndex)