peti446 / SwitchSwitch

This addon allows you to automatically change talents with a couple of clicks. No more need to remember all these talents. Also, you can configure it to prompt you to change based on the type of instance you joined.

Home Page:https://wow.curseforge.com/projects/switchswitch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KGNF opened this issue · 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

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 :)