Harden Altoholic frames against partial alt records (no-value char getters)

DataStore char-based getters return *no value* for any module that hasn't
scanned a given char (DataStore.lua: 'if not arg1.lastUpdate then return end').
Fresh CoA alts have partial per-module data, so the frames crashed feeding
'no value' into format()/concat/arithmetic/pairs. Guarded every such site:
AccountSummary, Activity, BagUsage, Quests, Reputations, TabCharacters,
DrawCharacterTooltip, recipe tooltip. No DataStore contract change.
This commit is contained in:
2026-05-28 23:45:09 +02:00
parent b332499098
commit f19ff36733
8 changed files with 60 additions and 58 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ function ns:Update()
local DS = DataStore
if DS:GetQuestLogSize(character) == 0 then
if (DS:GetQuestLogSize(character) or 0) == 0 then
AltoholicTabCharactersStatus:SetText(L["No quest found for "] .. addon:GetCurrentCharacter())
addon:ClearScrollFrame( _G[ frame.."ScrollFrame" ], entry, VisibleLines, 18)
return