diff --git a/AtlasLoot/CHANGELOG.md b/AtlasLoot/CHANGELOG.md index d818a727..39b5a43a 100644 --- a/AtlasLoot/CHANGELOG.md +++ b/AtlasLoot/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 8.15.1 - January 15, 2025 + +### Fixed + +- Fixed error when clicking on certain expansions under the Factions module + ## 8.15.0 - January 12, 2025 ### Added diff --git a/AtlasLoot/ItemDB/ItemDB.lua b/AtlasLoot/ItemDB/ItemDB.lua index d39c1a33..ce327282 100644 --- a/AtlasLoot/ItemDB/ItemDB.lua +++ b/AtlasLoot/ItemDB/ItemDB.lua @@ -430,7 +430,11 @@ function ItemDB.ContentProto:GetNameForItemTable(index) return AtlasLoot.EncounterJournal:GetBossName(self.items[index].EncounterJournalID) elseif self.items[index].FactionID then local temp = C_Reputation.GetFactionDataByID(self.items[index].FactionID) - return temp.name --or "Faction "..self.items[index].FactionID + if (temp == nil) then + return nil + else + return temp.name --or "Faction "..self.items[index].FactionID + end else return UNKNOWN end