From e64b0b710a47d47346b6b691a0323cb42a3ba131 Mon Sep 17 00:00:00 2001 From: torhal Date: Sun, 14 Jun 2009 05:02:07 +0000 Subject: [PATCH] In addon:ScanVendor(): Make sure name is not nil before proceeding with tooltip scanning. --- ARLDatamine.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 1.7.9.5