Closed GoogleCodeExporter closed 9 years ago
and this as well...
87x Accountant\Accountant-4.06.50005.lua:1780: attempt to index field "?" (a
nil value)
Accountant\Accountant-4.06.50005.lua:1780: in function "GetDetailForToons"
Accountant\Accountant-4.06.50005.lua:717: in function "LDB_Update"
Accountant\Accountant-4.06.50005.lua:1658: in function "OnEvent"
<string>:"*:OnEvent":1: in function <string>:"*:OnEvent":1
Locals:
self = <table> {
sender = ""
artwork_path = "..\Artwork\"
repair_cost = 0
CharDropDown_Init = <func> @..\Accountant.lua:1353
current_money = 261121201
current_tab = 1
AllDropdown = "All Chars"
Realm = "Azgalor"
Button_Toggle = <func> @..\Accountant.lua:215
SetLabels = <func> @..\Accountant.lua:879
got_name = true
could_repair = false
DIVIDER = "-"
player = "Azgalor-Nosredna"
InitOptions = <func> @..\Accountant.lua:650
TableContainsValue = <func> @..\Accountant.lua:42
Button_Alliance_Toggle = <func> @..\Accountant.lua:1432
Button_Init = <func> @..\Accountant.lua:203
ShowValues = <func> @..\Accountant.lua:1883
Toons = <table> {}
ToonDropDownList = <func> @..\Accountant.lua:1329
log_modes = <table> {}
LDB_OnTooltipShow = <func> @..\Accountant.lua:751
can_repair = ""
GetCashForAllToons = <func> @..\Accountant.lua:1829
repair_money = 0
ShowHorde = true
RegisterEvents = <func> @..\Accountant.lua:835
OnLoad = <func> @..\Accountant.lua:941
Slash = <func> @..\Accountant.lua:1466
verbose = false
show_setup = false
Char = "Nosredna"
Button_Horde_Toggle = <func> @..\Accountant.lua:1447
Version = "4.06.50005"
CharDropDown_OnShow = <func> @..\Accountant.lua:1394
UtilToonDropDownList = <func> @..\Accountant.lua:87
log_modes_short = <table> {}
Button_makename = <func> @..\Accountant.lua:194
last_money = 261121201
ToonMerge = <func> @..\Accountant.lua:144
refund_mode = ""
ClearData = <func> @..\Accountant.lua:70
GREEN_COLOR = "|cff20ff20"
UpdateLog = <func> @..\Accountant.lua:1980
Button_OnClick = <func> @..\Accountant.lua:182
data = <table> {}
LDB_Init = <func> @..\Accountant.lua:681
LDB_frame = <unnamed> {}
GOLD_COLOR = "|cFFFFFF00"
mode = "MAIL"
LoadSavedData = <func> @..\Accountant.lua:1017
ShowAlliance = false
Print2 = <func> @..\Accountant.lua:1973
OnShow = <func> @..\Accountant.lua:1951
show_mode = false
CharDropDown_Setup = <func> @..\Accountant.lua:1372
LDB_Update = <func> @..\Accountant.lua:705
Print = <func> @..\Accountant.lua:1965
GetCashForToons = <func> @..\Accountant.lua:1801
AllToons = <table> {}
CacheGetCopper = <func> @..\Accountant.lua:1298
WeekStart = <func> @..\Accountant.lua:1740
NiceCash = <func> @..\Accountant.lua:1665
GetDetailForToons = <func> @..\Accountant.lua:1757
show_toons = "All Chars"
ShowUsage = <func> @..\Accountant.lua:1462
MaxRows = 15
CharDropDown_OnClick = <func> @..\Accountant.lua:1404
CacheSetCopper = <func> @..\Accountant.lua:1279
Tab_OnClick = <func> @..\Accountant.lua:2079
ToonDelete = <func> @..\Accountant.lua:110
OnHide = <func> @Accountant
Original comment by spycrzys...@gmail.com
on 24 Sep 2012 at 3:43
I poked at this a bit, and found the problem (at least at line 1149).
I enabled the Print2 statement, and it died while processing key "BMAH" (which
I assume is the new Black Market Auction House). There is no existing key with
this value in SaveData, so the code attempts to index on a nil key.
I added this test and this error went way (but it moved on to new errors, so
the code needs to be more conservative when indexing, since the hard-coded SC.data array might be different from that is in Accountant's saved data from an earlier run.
One other comment: I suggest you declare local variables as "local" to avoid
strange bugs where another function changes your global variable without you
realizing it.
Original comment by n...@askneil.com
on 24 Sep 2012 at 6:25
Original comment by proost.t...@gmail.com
on 1 Dec 2012 at 7:27
Original issue reported on code.google.com by
spycrzys...@gmail.com
on 24 Sep 2012 at 3:42