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:
@@ -448,7 +448,7 @@ local function GetRecipeOwners(professionName, link, recipeLevel)
|
||||
table.insert(know, coloredName)
|
||||
else
|
||||
local currentLevel = DataStore:GetSkillInfo(character, professionName)
|
||||
if currentLevel > 0 then
|
||||
if currentLevel and currentLevel > 0 then -- CoA: getter returns no value for chars DataStore_Skills hasn't scanned
|
||||
if currentLevel < recipeLevel then
|
||||
table.insert(willLearn, format("%s |r(%d)", coloredName, currentLevel))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user