diff --git a/keybinding.c b/keybinding.c index 81468ee..a061bc2 100644 --- a/keybinding.c +++ b/keybinding.c @@ -544,6 +544,9 @@ keybinding_split_output(struct cg_output *output, bool vertical) { static void keybinding_close_view(struct cg_view *view) { + if(view == NULL) { + return; + } view->impl->close(view); }