From b65e3482333f28d436a478a9e16157cb8f822cfc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 14 Dec 2015 11:11:29 -0500 Subject: [PATCH] Fix crash in bar { } blocks --- sway/commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index b0235dba9..604e10aa5 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1782,7 +1782,11 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) { if (argc>1 && (*argv[1] == '\"' || *argv[1] == '\'')) { strip_quotes(argv[1]); } - results = handler->handle(argc-1, argv+1); + if (handler->handle) { + results = handler->handle(argc-1, argv+1); + } else { + results = cmd_results_new(CMD_INVALID, argv[0], "This command is shimmed, but unimplemented"); + } cleanup: free_argv(argc, argv); return results;