module/i3: fix crash when there is no "current" workspace template

This commit is contained in:
Daniel Eklöf 2019-02-13 21:46:30 +01:00
parent 4d9ee6ff82
commit 6e44d8e04e

View file

@ -798,7 +798,8 @@ content(struct module *mod)
if (ws->focused) {
const struct ws_content *cur = ws_content_for_name(m, "current");
current = cur->content->instantiate(cur->content, &tags);
if (cur != NULL)
current = cur->content->instantiate(cur->content, &tags);
}
if (template == NULL) {