[BUG] LUA warnings when enabling flask/food announcements
Opened this issue ยท 2 comments
What steps will reproduce the problem?
Enabling "Announcements -> Announce the usage of flasks and food" causes LUA warnings upon UI load/reload.
What version of ShestakUI are you using? (Stating 'latest' is not useful)
Do you have an error log of what happened?
LUA Warning 1
Message:` ...Ons\ShestakUI\Modules\Announcements\FlaskAndFood.lua:134: attempt to index global 'RaidUtilityRoleButton' (a nil value)
{
Time: Sun Aug 25 23:47:43 2019
Count: 1
Stack: ...Ons\ShestakUI\Modules\Announcements\FlaskAndFood.lua:134: attempt to index global 'RaidUtilityRoleButton' (a nil value)
...Ons\ShestakUI\Modules\Announcements\FlaskAndFood.lua:134: in main chunk
Locals: T =
SkinCheckBox = defined @interface\AddOns\ShestakUI\Core\Functions.lua:453
PostCreateIcon = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1442
RaidDebuffsReverse ={
}
SetFontString = defined @interface\AddOns\ShestakUI\Core\Functions.lua:750
Scale = defined @interface\AddOns\ShestakUI\Core\PixelPerfect.lua:25
class = "SHAMAN"
RaidBuffs ={
}
dummy = defined @interface\AddOns\ShestakUI\Core\Constants.lua:6
white_list ={
}
SkinHelpBox = defined @interface\AddOns\ShestakUI\Core\Functions.lua:673
level = 1
PvPDebuffs ={
}
CheckChat = defined @interface\AddOns\ShestakUI\Core\Functions.lua:43
ShiftBarUpdate = defined @interface\AddOns\ShestakUI\Modules\ActionBars\Core.lua:247
merge ={
}
CheckPlayerBuff = defined @interface\AddOns\ShestakUI\Core\Functions.lua:110
UpdateManaLevel = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1082
pulse_ignored_spells ={
}
DebuffBlackList ={
}
MoveUnitFrames = defined @interface\AddOns\ShestakUI\Libs\oUF\Modules\MovableFrames.lua:434
HideAuraFrame = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1426
SetModifiedBackdrop = defined @interface\AddOns\ShestakUI\Core\API.lua:257
PlateBlacklist ={
}
CustomCastDelayText = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1369
SkinMaxMinFrame = defined @interface\AddOns\ShestakUI\Core\Functions.lua:585
screenWidth = 2560
BuffWhiteList ={
}
black_list ={
}
StylePet = defined @interface\AddOns\ShestakUI\Modules\ActionBars\Style.lua:170
StyleShift = defined @interface\AddOns\ShestakUI\Modules\ActionBars\Style.lua:160
PetBarUpdate = defined @interface\AddOns\ShestakUI\Modules\ActionBars\Core.lua:285
HideSpiral = defined @interface\AddOns\ShestakUI\Modules\ActionBars\Core.lua:169
wowBuild = 31650
RaidBuffsIgnore ={
}
PostCastStart = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1192
color ={
}
CreateAuraWatchIcon = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1543
screenHeight = 1440
raid_spells ={
}
UpdatePvPStatus = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1137
UpdateClassMana = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1102
AuraTrackerTime = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1410
CustomCastTimeText = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1365
noscalemult = 0.533333
RGBToHex = defined @interface\AddOns\ShestakUI\Core\Functions.lua:33
CreateAuraWatch = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1555
UpdateThreat = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1521
UpdateAllElements = defined @interface\AddOns\ShestakUI\Core\Functions.lua:718
PostUpdateIcon = defined @interface\AddOns\ShestakUI\Core\Functions.lua:1475
PostUpdatePower = defined @interface\AddOns\ShestakUI\Core\Functions.lua:979
PreUpdatePower = defined @interface\AddOns\ShestakUI\Core\Functions.lua:970
PostUpdateRaidHealth = defined @interface\AddOns\ShestakUI\Core\Functions.lua:888
PostUpdateHealth = defined @interface\AddOns\ShestakUI\Core\Functions.lua:757
healfilter ={
}
AnnounceToys ={
}
SkinFuncs =LUA Warning 2
Message: (null)
Time: Sun Aug 25 23:47:43 2019
Count: 4
Pushed a fix for this and #32. Please let me know if it persists.
No more LUA warnings. Requesting closure of #33.