summaryrefslogtreecommitdiffstats
path: root/sway/commands/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/border.c')
-rw-r--r--sway/commands/border.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c
index cc0d635a..2eed27bd 100644
--- a/sway/commands/border.c
+++ b/sway/commands/border.c
@@ -59,7 +59,7 @@ struct cmd_results *cmd_border(int argc, char **argv) {
59 } 59 }
60 60
61 struct sway_container *container = config->handler_context.container; 61 struct sway_container *container = config->handler_context.container;
62 if (!container->view) { 62 if (!container || !container->view) {
63 return cmd_results_new(CMD_INVALID, "border", 63 return cmd_results_new(CMD_INVALID, "border",
64 "Only views can have borders"); 64 "Only views can have borders");
65 } 65 }