diff --git a/Basalt/objects/Program.lua b/Basalt/objects/Program.lua index b20913d..76f4594 100644 --- a/Basalt/objects/Program.lua +++ b/Basalt/objects/Program.lua @@ -708,6 +708,9 @@ return function(name, parent) customEventHandler = function(self, event, ...) base.customEventHandler(self, event, ...) + if (curProcess == nil) then + return + end if(event=="basalt_resize")then local w, h = pWindow.getSize() local pW, pH = self:getSize()