Quantcast

Sometimes en error happens when cursor is on the datatext right after loading screen hides and guild info is not there. Attempting to fix

Darthpred [05-15-15 - 07:34]
Sometimes en error happens when cursor is on the datatext right after loading screen hides and guild info is not there. Attempting to fix
Filename
ElvUI_SLE/modules/sledatatexts/guild.lua
diff --git a/ElvUI_SLE/modules/sledatatexts/guild.lua b/ElvUI_SLE/modules/sledatatexts/guild.lua
index f71d916..1c7a87d 100644
--- a/ElvUI_SLE/modules/sledatatexts/guild.lua
+++ b/ElvUI_SLE/modules/sledatatexts/guild.lua
@@ -286,7 +286,7 @@ function LDB.OnEnter(self)
 		else
 			ssGuildName = _G.GUILD
 		end
-
+		if not ssGuildName then return end
 		line = tooltip:AddLine()
 		if not E.db.sle.dt.guild.hideGuild then
 			tooltip:SetCell(line, 1, "|cffffffff" .. ssGuildName .."|r", "LEFT", 3)