[Bug]
junmocho2 opened this issue ยท 1 comments
**What version of TellMeWhen are you using? **
8.7.5
What steps will reproduce the problem?
-
Have the following Lua snippet run:
TargetFrame:SetUserPlaced(true) -
Set up a TMW icon with the following notification:
While
C_NamePlate.GetNamePlateForUnit("player") ~= nil
Run
PlayerNamePlate = C_NamePlate.GetNamePlateForUnit("player")
PlayerNamePlate.UnitFrame.BuffFrame:SetScript("OnEvent", nil)
PlayerNamePlate.UnitFrame.BuffFrame:Hide()
PlayerNamePlate.UnitFrame.healthBar:SetHeight(8)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("LEFT", "PlayerNamePlate", "RIGHT", 0, 0) -
Reload UI. Everything is as intended up to this point.
-
Enter combat and I get the following error:
[ADDON_ACTION_BLOCKED] AddOn 'TellMeWhen' tried to call the protected function 'resume()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `resume'
[string "@TellMEwhen\TellMeWhen-8.7.5.lua"]:2721: in function <TellMeWhen\TellMeWhen.lua:2710> -
The error occurs when I enter combat for the first time after a UI reload. The error does not reoccur until another reload.
What do you expect to happen? What happens instead?
I don't understand what the error means and want to resolve it.
Screenshots and Export Strings
^1^T^SType^Sconditionicon ^SEvents^T ^N1^T ^SType^SLua ^SLua^S--~`<Untitled~`Lua~`Code>~J ~J local~`icon~`=~`...~J ~J --Your~`code~`goes~`here:~J ~J PlayerNamePlate~`=~`C_NamePlate.GetNamePlateForUnit("player")~J ~J PlayerNamePlate.UnitFrame.BuffFrame:SetScript("OnEvent",~`nil)~J PlayerNamePlate.UnitFrame.BuffFrame:Hide()~J PlayerNamePlate.UnitFrame.healthBar:SetHeight(8)~J ~J TargetFrame:ClearAllPoints()~J TargetFrame:SetPoint("LEFT",~`"PlayerNamePlate",~`"RIGHT",~`0,~`0) ^SEvent^SWCSP ^SOnConditionConditions^T ^N1^T ^SType^SLUA ^SName^SC_NamePlate.GetNamePlateForUnit("player")~`~|=~`nil ^t^Sn^N1 ^t^t^Sn^N1 ^t^SCustomTex^S232283 ^SFakeHidden^B ^SEnabled^B ^t^N87505^S~`~| ^Sicon^^
Additional Info
Thank you for all your amazing work!