Quantcast

I have no idea but seems that this can error sometimes. This fixes #322

Darthpred [09-06-16 - 11:54]
I have no idea but seems that this can error sometimes. This fixes #322
Filename
ElvUI_SLE/modules/databars/rep.lua
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