From 02d2e40d6f3e5c77c490be47071f964b257c59d8 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 4 Jun 2009 17:40:20 +0000 Subject: [PATCH] Check for nil text --- ARLDatamine.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 42589fc..96b7b11 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -635,7 +635,12 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) local textl = linetextl:GetText() local linetextr = _G["ARLDatamineTTTextRight" .. i] local textr = linetextr:GetText() - local text = textl .. " " .. textr + local text + if (textr) then + text = textl .. " " .. textr + else + text = textl + end self:Print(text) -- Check to see if it's a recipe otherwise break out of the for loop if (i == 1) then -- 1.7.9.5