SwitchSwitch

SwitchSwitch

44k Downloads

SwitchSwitch-1.6.lua:61: table index is nil

KGNF opened this issue ยท 1 comments

commented

I'm getting this error when I log in and go through a loading screen.

I have the same error with no talents saved, and with talents saved.

(I also deleted all switchswitch lua's just in case, but the error persisted)

2x SwitchSwitch\SwitchSwitch-1.6.lua:61: table index is nil
[string "@SwitchSwitch\SwitchSwitch-1.6.lua"]:61: in function `EnsureTablentSpecTableExits'
[string "@SwitchSwitch\SwitchSwitch-1.6.lua"]:101: in function `GetCurrentProfilesTable'
[string "@SwitchSwitch\SwitchSwitch-1.6.lua"]:435: in function `GetCurrentProfileFromSaved'
[string "@SwitchSwitch\Init.lua"]:101: in function <SwitchSwitch\Init.lua:42>

Locals:
self = <table> {
 SetTalents = <function> defined @SwitchSwitch\SwitchSwitch.lua:304
 EnsureTalentClassTableExits = <function> defined @SwitchSwitch\SwitchSwitch.lua:49
 HasHeartOfAzerothEquipped = <function> defined @SwitchSwitch\SwitchSwitch.lua:43
 PrintTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:28
 event_frame = <unnamed> {
 }
 Update = <function> defined @SwitchSwitch\Init.lua:144
 Print = <function> defined @SwitchSwitch\SwitchSwitch.lua:22
 tablelength = <function> defined @SwitchSwitch\SwitchSwitch.lua:463
 eventHandler = <function> defined @SwitchSwitch\Init.lua:42
 deepcopy = <function> defined @SwitchSwitch\SwitchSwitch.lua:448
 CustomProfileName = "Custom"
 GetCurrentTalents = <function> defined @SwitchSwitch\SwitchSwitch.lua:108
 EnsureTablentSpecTableExits = <function> defined @SwitchSwitch\SwitchSwitch.lua:58
 L = <table> {
 }
 G = <table> {
 }
 GlobalFrames = <table> {
 }
 ConfigFrame = <table> {
 }
 Commands = <table> {
 }
 Debug = <function> defined @SwitchSwitch\SwitchSwitch.lua:15
 GetCurrentProfilesTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:100
 sv = <table> {
 }
 GetCurrentProfileFromSaved = <function> defined @SwitchSwitch\SwitchSwitch.lua:433
 SetTalentTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:87
 IsCurrentTalentProfile = <function> defined @SwitchSwitch\SwitchSwitch.lua:380
 ActivateTalentProfile = <function> defined @SwitchSwitch\SwitchSwitch.lua:225
 DoesTalentProfileExist = <function> defined @SwitchSwitch\SwitchSwitch.lua:66
 version = "1.6"
 CanChangeTalents = <function> defined @SwitchSwitch\SwitchSwitch.lua:173
 TalentUIFrame = <table> {
 }
 DeleteTalentTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:92
 LastInstanceID = -1
 GetTalentTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:79
}
(*temporary) = <table> {
 103 = <table> {
 }
}
(*temporary) = nil
(*temporary) = <table> {
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = 2
(*temporary) = "table index is nil"
addon = <table> {
 SetTalents = <function> defined @SwitchSwitch\SwitchSwitch.lua:304
 EnsureTalentClassTableExits = <function> defined @SwitchSwitch\SwitchSwitch.lua:49
 HasHeartOfAzerothEquipped = <function> defined @SwitchSwitch\SwitchSwitch.lua:43
 PrintTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:28
 event_frame = <unnamed> {
 }
 Update = <function> defined @SwitchSwitch\Init.lua:144
 Print = <function> defined @SwitchSwitch\SwitchSwitch.lua:22
 tablelength = <function> defined @SwitchSwitch\SwitchSwitch.lua:463
 eventHandler = <function> defined @SwitchSwitch\Init.lua:42
 deepcopy = <function> defined @SwitchSwitch\SwitchSwitch.lua:448
 CustomProfileName = "Custom"
 GetCurrentTalents = <function> defined @SwitchSwitch\SwitchSwitch.lua:108
 EnsureTablentSpecTableExits = <function> defined @SwitchSwitch\SwitchSwitch.lua:58
 L = <table> {
 }
 G = <table> {
 }
 GlobalFrames = <table> {
 }
 ConfigFrame = <table> {
 }
 Commands = <table> {
 }
 Debug = <function> defined @SwitchSwitch\SwitchSwitch.lua:15
 GetCurrentProfilesTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:100
 sv = <table> {
 }
 GetCurrentProfileFromSaved = <function> defined @SwitchSwitch\SwitchSwitch.lua:433
 SetTalentTable = <function> defined @SwitchSwitch\SwitchSwitch.lua:87
 IsCurrentTalentProfile = <function> defined @SwitchSwitch\SwitchSwitch.lua:380
 ActivateTalentProfile = <function> defined @SwitchSwitch\SwitchSwitch.lua:225
commented

Thanks for the report, I have submitted a change that should fix this. If you still find the this error is happening after the update, just reopen this issue :)