In addon:ScanVendor(): Make sure name is not nil before proceeding with tooltip scanning.
torhal [06-14-09 - 05:02]
In addon:ScanVendor(): Make sure name is not nil before proceeding with tooltip scanning.
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 93998db..384f81d 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1901,9 +1901,11 @@ function addon:ScanVendor()
for i = 1, GetMerchantNumItems(), 1 do
local name, _, _, _, numAvailable = GetMerchantItemInfo(i)
- ARLDatamineTT:SetMerchantItem(i)
- self:ScanToolTip(name, recipe_list, reverse_lookup, true, false)
- self:PrintScanResults()
+ if name then
+ ARLDatamineTT:SetMerchantItem(i)
+ self:ScanToolTip(name, recipe_list, reverse_lookup, true, false)
+ self:PrintScanResults()
+ end
end
ARLDatamineTT:Hide()
else