AdiBags

AdiBags

8M Downloads

[Classic] Error when splitting a stack

ollema opened this issue ยท 1 comments

commented

When splitting a stack - by shift-right clicking a stack and then clicking somewhere else on the AdiBags frame - I get the following error:

2x AdiBags\widgets\ContainerFrame.lua:428: attempt to index local 'button' (a nil value)
AdiBags\widgets\ContainerFrame.lua:428: in function <AdiBags\widgets\ContainerFrame.lua:408>
(tail call): ?

Locals:
self = AdiBagsContainer1 {
 removed = <table> {
 }
 HeaderLeftRegion = AdiBagsSimpleLayeredRegion1 {
 }
 sections = <table> {
 }
 changed = <table> {
 }
 added = <table> {
 }
 ToSortSection = AdiBagsSection1 {
 }
 stacks = <table> {
 }
 Anchor = AdiBagsBagAnchor1 {
 }
 minWidth = 303.555794
 BagSlotButton = <unnamed> {
 }
 BottomLeftRegion = AdiBagsSimpleLayeredRegion3 {
 }
 forceLayout = false
 paused = false
 buttons = <table> {
 }
 Content = <unnamed> {
 }
 Title = AdiBagsContainer1Title {
 }
 BottomRightRegion = AdiBagsSimpleLayeredRegion4 {
 }
 widgets = <table> {
 }
 BagSlotPanel = AdiBagsContainer1Bags {
 }
 CloseButton = <unnamed> {
 }
 name = "Backpack"
 bagObject = <table> {
 }
 0 = <userdata>
 isBank = false
 content = <table> {
 }
 HeaderRightRegion = AdiBagsSimpleLayeredRegion2 {
 }
}
kind = "item"
data1 = 21762
data2 = "|cffffffff|Hitem:21762::::::::60:::::::|h[Greater Scarab Coffer Key]|h|r"
itemLink = "|cffffffff|Hitem:21762::::::::60:::::::|h[Greater Scarab Coffer Key]|h|r"
slotId = 116
button = AdiBagsStackButton1 {
 0 = <userdata>
 acquired = true
 slots = <table> {
 }
 count = 0
 section = AdiBagsSection6 {
 }
 GetCountHook = <function> defined @AdiBags\widgets\ItemButton.lua:407
 dirtyCount = true
 key = "*Free*#0"
 container = AdiBagsContainer1 {
 }
}
button = nil
(*temporary) = <function> defined @AdiBags\core\Core.lua:61
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'button' (a nil value)"
GetCursorInfo = <function> defined =[C]:-1
GetMerchantItemLink = <function> defined =[C]:-1
addon = <table> {
 AcquireItemButton = <function> defined @AdiBags\widgets\ItemButton.lua:146
 modules = <table> {
 }
 UpdateFilters = <function> defined @AdiBags\core\Filters.lua:83
 SecureHook = <function> defined @Ace3\AceHook-3.0\AceHook-3.0.lua:336
 defaultModulePrototype = <table> {
 }
 ConfigChanged = <function> defined @AdiBags\core\Core.lua:354
 GetSlotId = <function> defined @AdiBags\core\Utility.lua:57
 Filter = <function> defined @AdiBags\core\Filters.lua:144
 IsEnabled = <function> defined @AutoCombatLogger\Libs\AceAddon-3.0\AceAddon-3.0.lua:451
 Reconfigure = <function> defined @AdiBags\core\Core.lua:176
 SetupTooltip = <function> defined @AdiBags\core\Utility.lua:114
 RegisterMessage = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
 UnregisterMessage = <function> defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
 hooks = <table> {
 }
 GetDistinctItemID = <function> defined @AdiBags\core\Utility.lua:188
 CreateFont = <function> defined @AdiBags\core\Fonts.lua:122
 filterProto = <table> {
 }
 db = <table> {
 }
 OpenOptions = <function> defined @AdiBags\core\Core.lua:282
 GetFamilyTag = <function> defined @AdiBags\core\Utility.lua:276
 Hook = <function> defined @Ace3\AceHook-3.0\AceHook-3.0.lua:274
 IterateBags = <function> defined @AdiBags\core\Bags.lua:183
 OnEnable = <function> defined @AdiBags\core\Core.lua:115
 HookBagFrameCreation = <function> defined @AdiBags\core\Bags.lua:287
 NewBag = <function> defined @AdiBags\core\Bags.lua:150
 BugGrabber = <table> {
 }
 RegisterFilter = <function> defined @AdiBags\core\Filters.lua:120
 BACKDROP = <table> {
 }
 OnInitialize = <function> defined =[C]:-1
 NewModule = <function> defined @AutoCombatLogger\Libs\AceAddon-3.0\AceAddon-3.0.lua:235
 InitializeFilters = <function> defined @AdiBags\core\Filters.lua:64
 IterateFilters = <function> defined @AdiBags\core\Filters.lua:116
 bagFont = AdiBagsBagFont {
 }
 CreateBagSlotPanel = <function> defined @AdiBags\widgets\BagSlots.lua:437
 TOP_PADDING = 32
 hookedBags = <
commented

This was with all my other Addons enabled.

I also tried disabling all Addons but AdiBags and BugSack and I still get the following when splitting stacks:

1x AdiBags\widgets\ContainerFrame.lua:428: attempt to index local 'button' (a nil value)
AdiBags\widgets\ContainerFrame.lua:428: in function <AdiBags\widgets\ContainerFrame.lua:408>
(tail call): ?

Locals:
self = AdiBagsContainer1 {
 removed = <table> {
 }
 HeaderLeftRegion = AdiBagsSimpleLayeredRegion1 {
 }
 sections = <table> {
 }
 changed = <table> {
 }
 added = <table> {
 }
 ToSortSection = AdiBagsSection1 {
 }
 stacks = <table> {
 }
 Anchor = AdiBagsBagAnchor1 {
 }
 minWidth = 303.555794
 BagSlotButton = <unnamed> {
 }
 BottomLeftRegion = AdiBagsSimpleLayeredRegion3 {
 }
 forceLayout = false
 paused = false
 buttons = <table> {
 }
 Content = <unnamed> {
 }
 Title = AdiBagsContainer1Title {
 }
 BottomRightRegion = AdiBagsSimpleLayeredRegion4 {
 }
 widgets = <table> {
 }
 BagSlotPanel = AdiBagsContainer1Bags {
 }
 CloseButton = <unnamed> {
 }
 name = "Backpack"
 bagObject = <table> {
 }
 0 = <userdata>
 isBank = false
 content = <table> {
 }
 HeaderRightRegion = AdiBagsSimpleLayeredRegion2 {
 }
}
kind = "item"
data1 = 21762
data2 = "|cffffffff|Hitem:21762::::::::60:::::::|h[Greater Scarab Coffer Key]|h|r"
itemLink = "|cffffffff|Hitem:21762::::::::60:::::::|h[Greater Scarab Coffer Key]|h|r"
slotId = 116
button = AdiBagsStackButton1 {
 0 = <userdata>
 acquired = true
 slots = <table> {
 }
 count = 0
 section = AdiBagsSection6 {
 }
 GetCountHook = <function> defined @AdiBags\widgets\ItemButton.lua:407
 dirtyCount = true
 key = "*Free*#0"
 container = AdiBagsContainer1 {
 }
}
button = nil
(*temporary) = <function> defined @AdiBags\core\Core.lua:61
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'button' (a nil value)"
GetCursorInfo = <function> defined =[C]:-1
GetMerchantItemLink = <function> defined =[C]:-1
addon = <table> {
 AcquireItemButton = <function> defined @AdiBags\widgets\ItemButton.lua:146
 modules = <table> {
 }
 UpdateFilters = <function> defined @AdiBags\core\Filters.lua:83
 SecureHook = <function> defined @AdiBags\libs\AceHook-3.0\AceHook-3.0.lua:336
 defaultModulePrototype = <table> {
 }
 ConfigChanged = <function> defined @AdiBags\core\Core.lua:354
 GetSlotId = <function> defined @AdiBags\core\Utility.lua:57
 Filter = <function> defined @AdiBags\core\Filters.lua:144
 IsEnabled = <function> defined @AdiBags\libs\AceAddon-3.0\AceAddon-3.0.lua:451
 Reconfigure = <function> defined @AdiBags\core\Core.lua:176
 SetupTooltip = <function> defined @AdiBags\core\Utility.lua:114
 RegisterMessage = <function> defined @AdiBags\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
 UnregisterMessage = <function> defined @AdiBags\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
 hooks = <table> {
 }
 GetDistinctItemID = <function> defined @AdiBags\core\Utility.lua:188
 CreateFont = <function> defined @AdiBags\core\Fonts.lua:122
 filterProto = <table> {
 }
 db = <table> {
 }
 OpenOptions = <function> defined @AdiBags\core\Core.lua:282
 GetFamilyTag = <function> defined @AdiBags\core\Utility.lua:276
 Hook = <function> defined @AdiBags\libs\AceHook-3.0\AceHook-3.0.lua:274
 IterateBags = <function> defined @AdiBags\core\Bags.lua:183
 OnEnable = <function> defined @AdiBags\core\Core.lua:115
 HookBagFrameCreation = <function> defined @AdiBags\core\Bags.lua:287
 NewBag = <function> defined @AdiBags\core\Bags.lua:150
 BugGrabber = <table> {
 }
 RegisterFilter = <function> defined @AdiBags\core\Filters.lua:120
 BACKDROP = <table> {
 }
 OnInitialize = <function> defined =[C]:-1
 NewModule = <function> defined @AdiBags\libs\AceAddon-3.0\AceAddon-3.0.lua:235
 InitializeFilters = <function> defined @AdiBags\core\Filters.lua:64
 IterateFilters = <function> defined @AdiBags\core\Filters.lua:116
 bagFont = AdiBagsBagFont {
 }
 CreateBagSlotPanel = <function> defined @AdiBags\widgets\BagSlots.lua:437
 TOP_PADDING = 32