Files 2
Downloads 3,447,526
Favorites 1,775
View Bug Report
UI Error
Bug #: 1296
File: Master Merchant
Date: 04/03/15 12:00 PM
By: kennedyr
Status: Fixed
I've been using MM for a few weeks now without any issues until today. On startup I get the following UI Error:
user:/AddOns/MasterMerchant/MasterMerchant.lua:1671: table index is nil
stack traceback:
user:/AddOns/MasterMerchant/MasterMerchant.lua:1671: in function 'MasterMerchant:InitPurchaseHistory'
user:/AddOns/MasterMerchant/MasterMerchant.lua:1656: in function 'MasterMerchant:TruncateHistory'
user:/AddOns/MasterMerchant/MasterMerchant.lua:1463: in function 'MasterMerchant:Initialize'
user:/AddOns/MasterMerchant/MasterMerchant.lua:1894: in function 'OnAddOnLoaded'

I've restarted Elder Scrolls and completely re-installed MM. I've also disabled all addons with the exception of MM and still get the same result.

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Philgo68 - 04/03/15 02:28 PM
Seems like you somehow have a sales history record with a nil or missing guild name.
By: Philgo68 - 04/03/15 02:37 PM
Next version 1.6.11 or higher will have some protection to account for this possibility.
By: kennedyr - 04/03/15 02:45 PM
Any idea of a work around?
By: Philgo68 - 04/03/15 03:34 PM
Change:
if type(dataList['sales'][i]['timestamp']) ~= 'number' or dataList['sales'][i]['timestamp'] < epochBack then


to:
if type(dataList['sales'][i]['timestamp']) ~= 'number' or dataList['sales'][i]['timestamp'] < epochBack or dataList['sales'][i]['guild'] == nil then



in MasterMerchant.lua in the MasterMerchant:TruncateHistory() function.
By: kennedyr - 04/03/15 03:40 PM
Thanks Philgo - I've never edited an lua file. Do I need to download something to enable me to do this?
By: kennedyr - 04/03/15 03:52 PM
Hi Philgo. Sorry for my previous dim question as Dr. Google came to my aid! I've edited MasterMerchant.lua as instructed and it now works. I very much appreciate your help. Thank you!
By: Philgo68 - 04/03/15 04:54 PM
yw