Krowi's Achievement Filter

Krowi's Achievement Filter

738k Downloads

API.lua:79: attempt to index local 'category' (a nil value)

Ookami313 opened this issue ยท 1 comments

commented

I was clicking on the event toasts as they were popping up after logging in and received an error for one of them, ( I think it's for the Elemental Storms). Clicking on the toast for "Slagmire" and also the tab from the achievement UI caused the following error. The other tabs cause no issue and opened their respective achievement. Thanks.

Edit: It's for the Elemental Storms, not Primalist Invasions.

Screenshot 2023-06-21 181358_2

16x Krowi_AchievementFilter/API.lua:79: attempt to index local 'category' (a nil value)
[string "@Krowi_AchievementFilter/API.lua"]:79: in function `KrowiAF_SelectCategory'
[string "@Krowi_AchievementFilter/GUI/Misc/AlertFrame/AlertFrame.lua"]:18: in function <...AchievementFilter/GUI/Misc/AlertFrame/AlertFrame.lua:4>

Locals:
category = nil
collapsed = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'category' (a nil value)"
addon =

{
ReplaceVarsWithReloadReq = defined @Krowi_AchievementFilter/Globals.lua:543
WorldMapButtons =
{
}
GUI =
{
}
SearchOptions =
{
}
Filters =
{
}
ExcludeAchievement = defined @Krowi_AchievementFilter/Globals.lua:210
Data =
{
}
BuildCache = defined @Krowi_AchievementFilter/Globals.lua:323
ChangeAchievementMicroButtonOnClick = defined @Krowi_AchievementFilter/Globals.lua:625
Objects =
{
}
IsWrathClassic = false
DelayObjects =
{
}
OnAchievementEarned = defined @Krowi_AchievementFilter/Globals.lua:365
DelayFunction = defined @Krowi_AchievementFilter/Globals.lua:644
Options =
{
}
Diagnostics =
{
}
IsCustomModifierKeyDown = defined @Krowi_AchievementFilter/Globals.lua:671
TooltipData =
{
}
EventData =
{
}
GlobalStrings =
{
}
MakeWindowMovable = defined @Krowi_AchievementFilter/Globals.lua:523
GetUsableSets = defined @Krowi_AchievementFilter/Globals.lua:595
Modifiers =
{
}
GetAchievementCriteriaInfo = defined @Krowi_AchievementFilter/Globals.lua:576
GetNextAchievement = defined @Krowi_AchievementFilter/Globals.lua:564
ExtraWrathStrings =
{
}
Tabs =
{
}
GetInstanceInfoName = defined @Krowi_AchievementFilter/Localization/GlobalStrings.lua:10
GetMapName = defined @Krowi_AchievementFilter/Localization/GlobalStrings.lua:38
GetAchievementInfo = defined @Krowi_AchievementFilter/Globals.lua:552
Util =
{
}
MetaData =
{
}
GetFirstAchievementId = defined @Krowi_AchievementFilter/Globals.lua:3
GetSecondsSince = defined @Krowi_AchievementFilter/Globals.lua:533
WatchAchievement = defined @Krowi_AchievementFilter/Globals.lua:160
InGuildView = defined @Krowi_AchievementFilter/Globals.lua:12
TrackingAchievements =
{
}
GetAchievementsInZone = defined @Krowi_AchievementFilter/Globals.lua:20
MakeWindowStatic = defined @Krowi_AchievementFilter/Globals.lua:483
GetVariantSetIDs = defined @Krowi_AchievementFilter/Globals.lua:607
TabsOrder =
{
}
ResetCache = defined @Krowi_AchievementFilter/Globals.lua:353
HookFunctions = defined @Krowi_AchievementFilter/Globals.lua:452
OverwriteFunctions = defined @Krowi_AchievementFilter/Globals.lua:387
Plugins =
{
}
L =
{
}
Icon =
{
}
Credits =
{
}
GetActiveCovenant = defined @Krowi_AchievementFilter/Globals.lua:16
GetAchievementNumCriteria = defined @Krowi_AchievementFilter/Globals.lua:587
GetAchievementNumbers = defined @Krowi_AchievementFilter/Globals.lua:51
GetCategoryInfoTitle = defined @Krowi_AchievementFilter/Localization/GlobalStrings.lua:22
PluginStrings =
{
}
AddToTrackingAchievementsCategories = defined @Krowi_AchievementFilter/Globals.lua:174
Event =
{
}
IncludeAchievement = defined @Krowi_AchievementFilter/Globals.lua:187
IsDragonflightRetail = true
Tutorials =
{
}
GetLFGDungeonInfo = defined @Krowi_Achieve

commented

I hope to have this fixed in 10.1.5. Hard to test though as these events are not always up.