From dfa42fd4088c1cf1f70277d4696e3bf96c205667 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 6 Sep 2016 14:54:27 +0300 Subject: [PATCH] I have no idea but seems that this can error sometimes. This fixes #322 --- ElvUI_SLE/modules/databars/rep.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/databars/rep.lua b/ElvUI_SLE/modules/databars/rep.lua index f4af848..b5aefda 100644 --- a/ElvUI_SLE/modules/databars/rep.lua +++ b/ElvUI_SLE/modules/databars/rep.lua @@ -260,8 +260,8 @@ function DB:ScanFactions() self.factions = T.GetNumFactions(); for i = 1, self.factions do local name, _, standingID, _, _, barValue, _, _, isHeader, _, hasRep = T.GetFactionInfo(i) - if (not isHeader or hasRep) then - self.factionVars[name] = {} + if (not isHeader or hasRep) and name then + self.factionVars[name] = self.factionVars[name] or {} self.factionVars[name].Standing = standingID self.factionVars[name].Value = barValue end -- 1.7.9.5