diff --git a/ui/gtk.c b/ui/gtk.c index e9564f2baab..f16e0f8dee9 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1784,7 +1784,9 @@ static void gd_vc_chr_accept_input(Chardev *chr) VCChardev *vcd = VC_CHARDEV(chr); VirtualConsole *vc = vcd->console; - gd_vc_send_chars(vc); + if (vc) { + gd_vc_send_chars(vc); + } } static void gd_vc_chr_set_echo(Chardev *chr, bool echo)