From 1db068363ab918d882064fc0cdad422615b5509f Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 26 Mar 2009 22:03:28 +0000 Subject: [PATCH] If there's no item ID present, don't try to get the item info, instead just move on and complain to the person. (Ticket 451) --- ARLFrame.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index e5eaae2..f7088c5 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -2695,9 +2695,13 @@ function addon.RecipeItem_OnClick(button) -- SHIFT elseif (IsShiftKeyDown()) then local itemID = recipeDB[clickedSpellIndex]["ItemID"] - local _, itemLink = GetItemInfo(itemID) - if (itemLink) then - ChatFrameEditBox:Insert(itemLink) + if (itemID) then + local _,itemLink = GetItemInfo(itemID) + if (itemLink) then + ChatFrameEditBox:Insert(itemLink) + else + addon:Print(L["NoItemLink"]) + end else addon:Print(L["NoItemLink"]) end -- 1.7.9.5