When using the Cooldowns module of Kpack, if an aura is setting the duration of an icon programmaticaly, it results in a nil error if the aura gets unloaded (disabled).
Adding a nil check for cooldown.expirationTime in the region:PreShow() function of Icon.lua fixes the issue.
Note that if the Cooldowns module from Kpack is not enabled, weakauras does not produce an error and works normaly.
Realm
Rexxar
Tested with only this addon
[X] Yes
[ ] No
Lua Error
Message: ..\AddOns\WeakAuras\RegionTypes\Icon.lua line 589:
attempt to perform arithmetic on field 'expirationTime' (a nil value)
Debug:
[C]: ?
WeakAuras\RegionTypes\Icon.lua:589: PreShow()
...ace\AddOns\WeakAuras\RegionTypes\RegionPrototype.lua:905: Expand()
Reproduction Steps
Have Weakauras addon.
Have Kpack addon with the Cooldowns module enabled ( unticked )
Description
When using the Cooldowns module of Kpack, if an aura is setting the duration of an icon programmaticaly, it results in a nil error if the aura gets unloaded (disabled).
Adding a nil check for
cooldown.expirationTime
in theregion:PreShow()
function of Icon.lua fixes the issue.Note that if the Cooldowns module from Kpack is not enabled, weakauras does not produce an error and works normaly.
Realm
Rexxar
Tested with only this addon
Lua Error
Reproduction Steps
https://user-images.githubusercontent.com/18594410/230337473-42bbb0dc-03f2-44af-8a76-26b9612358d7.mp4
Last Good Version
No response
Screenshots
No response