From 6e44d8e04ec7f4219d5cafb03346d40bc82b0c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 13 Feb 2019 21:46:30 +0100 Subject: [PATCH] module/i3: fix crash when there is no "current" workspace template --- modules/i3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/i3.c b/modules/i3.c index 14cb8b8..65dc702 100644 --- a/modules/i3.c +++ b/modules/i3.c @@ -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) {