Skip to content

Commit ddf517c

Browse files
committed
Guard against Bliz sending ITEM_LOCK_CHANGED for empty slots when sorting #58
1 parent d24436c commit ddf517c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ContainerPanel.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function LiteBagContainerPanelMixin:OnEvent(event, ...)
200200
local bag = self:GetBagFrameByID(arg1)
201201
if arg2 and bag then
202202
local info = C_Container.GetContainerItemInfo(bag:GetID(), arg2)
203-
SetItemButtonDesaturated(bag.Items[arg2], info.isLocked)
203+
SetItemButtonDesaturated(bag.Items[arg2], info and info.isLocked)
204204
end
205205
elseif event == "DISPLAY_SIZE_CHANGED" then
206206
-- We aren't doing any multi-frame reflowing stuff so do nothing

0 commit comments

Comments
 (0)