Try to add a nil check against Dek01StaminaBarWindow before the line 39 like this:
if nil == Dek01StaminaBarWindow then d ("TopLevelControl is mising!") end
This way cou can see if the control is somwhow missing.
And you can use the addon zgoo ingame like /zgoo Dek01StaminaBarWindow to check if the control is there, and see it's values.
|