`attempt to index field 'lastPostedItem' (a nil value)`
tflo opened this issue · 9 comments
Found this one in BugSack:
AuctionCacheRetail.lua:347: attempt to index field 'lastPostedItem' (a nil value)
6x ...s/Baganator/InventoryTracking/AuctionCacheRetail.lua:347: attempt to index field 'lastPostedItem' (a nil value)
[string "@Baganator/InventoryTracking/AuctionCacheRetail.lua"]:347: in function `ProcessAuctionCreated'
[string "@Baganator/InventoryTracking/AuctionCacheRetail.lua"]:169: in function <...s/Baganator/InventoryTracking/AuctionCacheRetail.lua:130>
Locals:
self = Frame {
postedItemsQueue = <table> {
}
currentCharacter = "Mercadera-AzjolNerub"
RemoveAuctionByID = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:116
OnLoad = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:18
0 = <userdata>
OnEvent = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:130
ProcessPostedItemsQueue = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:200
AddAuction = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:106
ProcessCommodityPurchase = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:279
ClearAuctionPending = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:351
ProcessAuctionCreated = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:313
AddToMail = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:101
ProcessItemPurchase = <function> defined @Baganator/InventoryTracking/AuctionCacheRetail.lua:256
}
auctionID = 546747958
(*temporary) = <table> {
}
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'lastPostedItem' (a nil value)"
208-5-gfc47b17 on Retail.
Only consequence is posted auctions via TSM won't show up in the auctions inventory tracking until you reopen the AH.
OK, good to know. Thanks for the info.
"Reopen" means just briefly (for a second or so) open the AH again, and no matter via which UI (TSM or Auctionator), correct?
Ok. Looks like TSM keeps a private copy of the function for posting auctions (like it does with a lot of functions) which caused the posted item check to fail. Only consequence is posted auctions via TSM won't show up in the auctions inventory tracking until you reopen the AH.
The code that errorred is necessary for the Blizzard posting UI to get posted auctions tracked.
I just did a quick test with two different items: Baganator's inventory tooltip shows the item under "Auctions" as soon as I have posted it with TSM.
Or do you mean something different with "won't show up in the auctions inventory tracking"?
Ok. I just assumed that would be the case. If TSM is querying the owned auctions list after posting that will cause the inventory tracking to update too without a reopen.