ui-widgets: check for frame before accessing it

This commit is contained in:
shagu
2022-06-18 15:33:08 +02:00
parent 96e4b9509f
commit 745665de43
+1
View File
@@ -866,6 +866,7 @@ function pfUI.api.SetAllPointsOffset(frame, parent, offset)
end
function pfUI.api.SkinCheckbox(frame, size)
if not frame then return end
frame:SetNormalTexture("")
frame:SetPushedTexture("")
frame:SetHighlightTexture("")