evil-morfar / RCLootCouncil2

RCLootCouncil - addon for World of Warcraft
https://rclootcouncil.com
GNU Lesser General Public License v3.0
19 stars 29 forks source link

RC classic manually adding an item causes LUA error #217

Closed mikec83 closed 1 year ago

mikec83 commented 2 years ago

When attempting to /rc add [Item Link] the following LUA error is generated. Running WOTLK classic and RCLC addon version 0.15.1-wrath

Message: ...dOns\RCLootCouncil_Classic\RCLootCouncil\ml_core.lua:100: attempt to get length of field 'lootTable' (a nil value)
Time: Thu Oct 13 08:27:42 2022
Count: 1
Stack: ...dOns\RCLootCouncil_Classic\RCLootCouncil\ml_core.lua:100: attempt to get length of field 'lootTable' (a nil value)
[string "@Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua"]:146: in function `origErrorHandler'
[string "@Interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua"]:761: in function <...Ons\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:717>
[string "=[C]"]: ?
[string "@Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\ml_core.lua"]:100: in function `AddItem'
[string "@Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\ml_core.lua"]:345: in function `AddUserItem'
[string "@Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\core.lua"]:1003: in function `ChatCmdAdd'
[string "@Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\core.lua"]:433: in function `?'
[string "@Interface\AddOns\Ace3\AceConsole-3.0\AceConsole-3.0.lua"]:90: in function `?'
[string "@Interface\FrameXML\ChatFrame.lua"]:4933: in function `ChatEdit_ParseText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4596: in function `ChatEdit_SendText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4632: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: private = <table> {
 ThrowError = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:46
 DoesErrorExist = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:87
 ClearOldErrors = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:107
 SanitizeLine = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:83
 MAX_STACK_DEPTH = 10
 log = <table> {
 }
 ErrorHandler = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:116
 IncrementErrorCount = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:77
 NewError = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:50
 IsRCLootCouncilError = <function> defined @Interface\AddOns\RCLootCouncil_Classic\RCLootCouncil\Core\ErrorHandler.lua:94
}
orig_errorhandler = <function> defined @Interface\SharedXML\SharedBasicControls.lua:355
evil-morfar commented 2 years ago

It's because the you haven't been registered as ML yet and the addon not "started". Will be fixed next update though.