added missing nil check for api.lua

This commit is contained in:
Meow
2026-03-20 23:15:14 +01:00
parent b5296ec391
commit 1402818e62
+1
View File
@@ -1440,6 +1440,7 @@ function pfUI.api.GetNoNameObject(frame, objtype, layer, arg1, arg2)
local arg2 = arg2 and gsub(arg2, "([%+%-%*%(%)%?%[%]%^])", "%%%1")
local objects
if not frame or not frame.GetRegions then return end
if objtype == "Texture" or objtype == "FontString" then
objects = {frame:GetRegions()}
else