Transmog Outfits

Transmog Outfits

49.3k Downloads

attempt to index global 'WardrobeTransmogFrame' (a nil value)

Ellucens opened this issue · 1 comments

commented

I'm getting a lua error on login.
Addon version v 2.6 uploaded July 16; game version 10.1.5.50747

The error goes away when I change TransmogOutfits.lua line 520 from
if WardrobeTransmogFrame:IsVisible() then
to
if WardrobeTransmogFrame and WardrobeTransmogFrame:IsVisible() then

Full error message:

Message: Interface/AddOns/TransmogOutfits/TransmogOutfits.lua:520: attempt to index global 'WardrobeTransmogFrame' (a nil value)
Time: Mon Aug  7 17:52:49 2023
Count: 2
Stack: Interface/AddOns/TransmogOutfits/TransmogOutfits.lua:520: attempt to index global 'WardrobeTransmogFrame' (a nil value)
[string "@Interface/AddOns/TransmogOutfits/TransmogOutfits.lua"]:520: in function `transmogOutfitFrameCreate'
[string "@Interface/AddOns/TransmogOutfits/TransmogOutfits.lua"]:67: in function <Interface/AddOns/TransmogOutfits/TransmogOutfits.lua:60>

Locals: frame = Frame {
 0 = <userdata>
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'WardrobeTransmogFrame' (a nil value)"
commented

Should be fixed now.