From cd76ac0b72a20e6e556bddfae508d188caf80357 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 10 Jul 2020 17:08:12 +0200 Subject: [PATCH] questitem: abort when no valid item was given --- modules/questitem.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/questitem.lua b/modules/questitem.lua index 731efbb9..4675e3bf 100644 --- a/modules/questitem.lua +++ b/modules/questitem.lua @@ -3,6 +3,9 @@ pfUI:RegisterModule("questitem", function () local itemcache = {} local function AddTooltip(frame, item) + -- abort when no item was given + if not item then return end + -- abort if questitem is disabled if C.tooltip.questitem.showquest ~= "1" then return end