Auctionator

Auctionator

137M Downloads

Error when trying to delete a shopping list not loaded.

DiscordGregory opened this issue ยท 1 comments

commented

Please include as much of the following information as possible to help me fix the bug:

Brief Description of Bug

You'll get an error trying to delete a shopping list if you don't have a shopping list active already.

Steps to Reproduce

Go to shopping tab without having a shopping list active. Click the dropdown and try to delete a shopping list.

Loaded Addons

None, just Auctionator

Back Trace (LUA Error Output)

Message: ...Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:66: attempt to index field 'currentList' (a nil value)
Time: Mon Oct 11 06:35:50 2021
Count: 1
Stack: ...Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:66: attempt to index field 'currentList' (a nil value)
[string "@interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua"]:66: in function ReceiveEvent' [string "@Interface\AddOns\Auctionator\Source\Utilities\EventBusMixin.lua"]:90: in function Fire'
[string "@interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Dialogs.lua"]:52: in function <...ns\Auctionator\Source\Tabs\ShoppingLists\Dialogs.lua:47>
[string "@interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Dialogs.lua"]:73: in function OnAccept' [string "@Interface\FrameXML\StaticPopup.lua"]:5090: in function StaticPopup_OnClick'
[string ":OnClick"]:1: in function <[string ":OnClick"]:1>

Locals: self = {
0 =
SetGetNumResultsFunction = defined @interface\SharedXML\TemplatedList.lua:60
GetListOffset = defined @interface\SharedXML\ScrollList.lua:30
GetScrollOffset = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollList.lua:102
InitializeElements = defined @interface\SharedXML\TemplatedList.lua:105
ScrollFrame = {
}
InitLine = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:97
OnShow = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollList.lua:17
SetUpEvents = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:16
GetElementFrame = defined @interface\SharedXML\ScrollList.lua:26
SetElementTemplate = defined @interface\SharedXML\TemplatedList.lua:50
searchProviders =

{
}
GetEntry = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:128
RefreshScrollFrame = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollList.lua:55
lineTemplate = "AuctionatorScrollListLineShoppingListTemplate"
EnumerateElementFrames = defined @interface\SharedXML\TemplatedList.lua:222
LoadingSpinner = {
}
RefreshListDisplay = defined @interface\SharedXML\TemplatedList.lua:180
ResultsText = {
}
CanDisplay = defined @interface\SharedXML\TemplatedList.lua:164
InsetFrame = {
}
GetNumEntries = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:120
IsInitialized = defined @interface\SharedXML\TemplatedList.lua:82
CheckListInitialization = defined @interface\SharedXML\TemplatedList.lua:86
UpdatedSelectedHighlight = defined @interface\SharedXML\TemplatedList.lua:116
ArtOverlay = {
}
SetLineTemplate = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollList.lua:106
SetRefreshCallback = defined @interface\SharedXML\TemplatedList.lua:69
AttachHighlightToElementFrame = defined @interface\SharedXML\ScrollList.lua:49
SetSelectedListIndex = defined @interface\SharedXML\TemplatedList.lua:137
ReceiveEvent = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:55
GetAllSearchTerms = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:37
GetNumElementFrames = defined @interface\SharedXML\ScrollList.lua:22
OnLoad = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:3
SpinnerAnim = {
}
HideSpinner = defined @interface\AddOns\Auctionator\Source\Tabs\ShoppingLists\Mixins\ScrollListShoppingList.lua:111
GetSelectedHighlig

commented

Thanks for the bug report. Its been fixed in the latest alpha and will go out with the next normal release.