ShestakUI (Classic)

ShestakUI (Classic)

33.7k Downloads

Hunter Trainer causes Lua Errors

Voiyt opened this issue ยท 2 comments

commented

heres a list of the errors im getting the second the skills tab opens at the hunter trainer:

Message: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
Time: Sun Aug 11 17:14:45 2019
Count: 1
Stack: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: in function <...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:38>
[C]: in function ClassTrainer_SetSelection'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:79: in function <...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:64>
[C]: in functionSetTrainerServiceTypeFilter'
[string ":OnShow"]:2: in function <[string ":OnShow"]:1>
[C]: in function Show'
Interface\FrameXML\UIParent.lua:2078: in functionSetUIPanel'
Interface\FrameXML\UIParent.lua:1923: in function ShowUIPanel'
Interface\FrameXML\UIParent.lua:1784: in function <Interface\FrameXML\UIParent.lua:1780>
[C]: in functionSetAttribute'
Interface\FrameXML\UIParent.lua:2526: in function ShowUIPanel'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:35: in functionClassTrainerFrame_Show'
Interface\FrameXML\UIParent.lua:1139: in function <Interface\FrameXML\UIParent.lua:658>

Locals: (temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(*temporary) = "attempt to index a nil value"
Message: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
Time: Sun Aug 11 17:14:45 2019
Count: 1
Stack: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: in function <...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:38>
[C]: in function ClassTrainer_SetSelection'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:79: in function <...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:64>
[C]: in functionSetTrainerServiceTypeFilter'
[string ":OnShow"]:3: in function <[string ":OnShow"]:1>
[C]: in function Show'
Interface\FrameXML\UIParent.lua:2078: in functionSetUIPanel'
Interface\FrameXML\UIParent.lua:1923: in function ShowUIPanel'
Interface\FrameXML\UIParent.lua:1784: in function <Interface\FrameXML\UIParent.lua:1780>
[C]: in functionSetAttribute'
Interface\FrameXML\UIParent.lua:2526: in function ShowUIPanel'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:35: in functionClassTrainerFrame_Show'
Interface\FrameXML\UIParent.lua:1139: in function <Interface\FrameXML\UIParent.lua:658>

Locals: (temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(*temporary) = "attempt to index a nil value"
Message: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
Time: Sun Aug 11 17:14:45 2019
Count: 1
Stack: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: in function <...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:38>
[C]: in function ClassTrainer_SetSelection'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:79: in function <...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:64>
[C]: in functionSetTrainerServiceTypeFilter'
[string ":OnShow"]:4: in function <[string ":OnShow"]:1>
[C]: in function Show'
Interface\FrameXML\UIParent.lua:2078: in functionSetUIPanel'
Interface\FrameXML\UIParent.lua:1923: in function ShowUIPanel'
Interface\FrameXML\UIParent.lua:1784: in function <Interface\FrameXML\UIParent.lua:1780>
[C]: in functionSetAttribute'
Interface\FrameXML\UIParent.lua:2526: in function ShowUIPanel'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:35: in functionClassTrainerFrame_Show'
Interface\FrameXML\UIParent.lua:1139: in function <Interface\FrameXML\UIParent.lua:658>

Locals: (temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(*temporary) = "attempt to index a nil value"
Message: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
Time: Sun Aug 11 17:14:45 2019
Count: 2
Stack: ...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: attempt to index a nil value
...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:39: in function <...atibility\Classic\Modules\Skins\Blizzard\Trainer.lua:38>
[C]: in function ClassTrainer_SetSelection'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:244: in functionClassTrainer_SelectFirstLearnableSkill'
...ace\AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua:46: in function `ClassTrainerFrame_Show'
Interface\FrameXML\UIParent.lua:1139: in function <Interface\FrameXML\UIParent.lua:658>

Locals: (temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(temporary) = nil
(*temporary) = "attempt to index a nil value"

commented

I pushed a potential fix for this. Not sure what caused that on your end, but I was unable to replicate it. I put in a safeguard nonetheless that should address it.

commented

I'll investigate this further later tonight, but for now I've disabled the trainer skin. Be sure to download the latest copy.