Avoid null error when screen configuration is changed.

This commit is contained in:
Xinhao Yuan 2022-01-09 16:38:39 -05:00
parent df15a7b78e
commit e413822ae1
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ function module.create(args_or_name, editor, default_cmd)
end end
local function get_instance_data(screen, tag) local function get_instance_data(screen, tag)
if screen == nil then return end
local workarea = screen.workarea local workarea = screen.workarea
local instance = get_instance_(tag) local instance = get_instance_(tag)
local cmd = instance.cmd or module.global_default_cmd local cmd = instance.cmd or module.global_default_cmd