From 2b48b6c35344959f2ef82311477f1a5c15484a78 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 28 Apr 2014 23:46:07 -0400 Subject: [PATCH] Fix a nil dereference --- tooltip.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tooltip.lua b/tooltip.lua index 5b91319..a722815 100644 --- a/tooltip.lua +++ b/tooltip.lua @@ -100,8 +100,9 @@ end local function set_text(self,text) self.init = nil self._text = text - - textw:set_markup("".. data._text .."") + if textw then + textw:set_markup("".. data._text .."") + end init(data,data._w,dara._args) end