casualshammy / NameplateCooldowns

This addon for World of Warcraft will show you cooldowns of an enemies above their nameplates
https://wow.curseforge.com/projects/nameplatecooldowns
Other
5 stars 3 forks source link

Lua error when I enter a Battleground or an arena #118

Closed Dolens closed 1 year ago

Dolens commented 1 year ago

Hello,

I got this message everytime I join a BG or an arena :

 Message: ...ace/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2419: attempt to call field '?' (a nil value)
Time: Sat Dec  3 01:52:58 2022
Count: 1
Stack: ...ace/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2419: attempt to call field '?' (a nil value)
[string "@Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua"]:2419: in function <...ace/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2419>

Locals: self = Frame {
 0 = <userdata>
 PLAYER_TARGET_CHANGED = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2564
 CHAT_MSG_ADDON = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2550
 COMBAT_LOG_EVENT_UNFILTERED = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2422
 NAME_PLATE_UNIT_REMOVED = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2538
 PLAYER_ENTERING_WORLD = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2508
 UNIT_AURA = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2471
 NAME_PLATE_UNIT_ADDED = <function> defined @Interface/AddOns/NameplateCooldowns/NameplateCooldowns.lua:2523
}
event = "PVP_MATCH_ACTIVE"
(*temporary) = nil
(*temporary) = "attempt to call field '?' (a nil value)"

Have a nice day !

casualshammy commented 1 year ago

Hello, Thanks for reporting, it's a very nasty bug. It is fixed in 100002.3-release

Dolens commented 1 year ago

Hello, Thanks for the fix ! Yeah, I watched your code and I didn't understand why that line was throwing a bug Have a nice week end, I love your addon :)

vendethiel commented 1 year ago

Ah, that’s the bit I left a comment on. Thank for fixing it.