Fix a nil dereference

This commit is contained in:
Emmanuel Lepage Vallee 2014-04-28 23:46:07 -04:00
parent e33300f4ee
commit 2b48b6c353
1 changed files with 3 additions and 2 deletions

View File

@ -100,8 +100,9 @@ end
local function set_text(self,text)
self.init = nil
self._text = text
textw:set_markup("<b>".. data._text .."</b>")
if textw then
textw:set_markup("<b>".. data._text .."</b>")
end
init(data,data._w,dara._args)
end