From e413822ae1364e9ff182aeec1d149b0ecef22e8c Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sun, 9 Jan 2022 16:38:39 -0500 Subject: [PATCH] Avoid null error when screen configuration is changed. --- layout.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/layout.lua b/layout.lua index b8cc215..d1ff077 100644 --- a/layout.lua +++ b/layout.lua @@ -182,6 +182,7 @@ function module.create(args_or_name, editor, default_cmd) end local function get_instance_data(screen, tag) + if screen == nil then return end local workarea = screen.workarea local instance = get_instance_(tag) local cmd = instance.cmd or module.global_default_cmd