Quantcast

makes sure not to call getiteminfo with a null id

Alar of Daggerspine [10-12-15 - 18:38]
makes sure not to call getiteminfo with a null id

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
Init.lua
diff --git a/Init.lua b/Init.lua
index ab4c8bb..0643f5e 100644
--- a/Init.lua
+++ b/Init.lua
@@ -104,6 +104,7 @@ end
 ns.I=LibStub("LibItemUpgradeInfo-1.0")
 ns.GetItemInfo=ns.I:GetCachingGetItemInfo()
 function ns.GarrisonMissionFrame_SetItemRewardDetails(frame,bark)
+	if not frame.itemID then return end
 	local itemName, _, itemRarity, _, _, _, _, _, _, itemTexture = ns.GetItemInfo(frame.itemID);
 	--@debug@
 	if bark then print(frame.itemID,'rescheduled',itemName) end