From bdf7c687e46f9b05a2db3a450539484a649b3ef1 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 8 May 2017 21:15:30 +0200 Subject: [PATCH] api: do not proceed in backdrop code without frame --- api/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api.lua b/api/api.lua index ea70e418..25dcfd47 100644 --- a/api/api.lua +++ b/api/api.lua @@ -323,6 +323,9 @@ end -- 'legacy' [bool] use legacy backdrop instead of creating frames. -- 'transp' [bool] force default transparency of 0.8. function pfUI.api.CreateBackdrop(f, inset, legacy, transp) + -- exit if now frame was given + if not f then return end + -- use default inset if nothing is given local border = inset if not border then