Thaoky / Altoholic_Retail

WoW Altoholic Addon (WoW Retail version)
24 stars 5 forks source link

Lua error in DataStore_Stats when logging in (or /reload). #53

Closed b-morgan closed 1 month ago

b-morgan commented 1 month ago

I'm debugging my addon, Skillet, so I'm changing code and doing a "/reload". Just started getting this error in the last few days.

4x DataStore_Stats/DataStore_Stats.lua:190: table index is nil
[string "@DataStore_Stats/DataStore_Stats.lua"]:190: in function <DataStore_Stats/DataStore_Stats.lua:179>
[string "@DataStore_Stats/DataStore_Stats.lua"]:334: in function `callback'
[string "@DataStore/Events/Addon.lua"]:17: in function <DataStore/Events/Addon.lua:13>

Locals:
rewardType = nil
activities = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
}
(for state) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
}
(for control) = 6
_ = 6
activity = <table> {
 type = 6
 index = 3
 activityTierID = 0
 progress = 0
 rewards = <table> {
 }
 threshold = 8
 level = 0
 raidString = "Defeat %d Nerub-ar Palace |4Boss:Bosses"
 id = 139
}
(*temporary) = <table> {
 MythicPlusReward = 0
 RaidReward = 0
}
(*temporary) = nil
(*temporary) = 0
(*temporary) = "table index is nil"
C_WeeklyRewards = <table> {
}
thisCharacterWeekly = <table> {
 MythicPlusReward = 0
 RaidReward = 0
}
rewardFields = <table> {
 1 = "MythicPlusReward"
 2 = "RankedPvPReward"
 3 = "RaidReward"
}
Thaoky commented 1 month ago

Fixed in .004