diff --git a/ui/gtk.c b/ui/gtk.c index 428f02f2dfe1da721d2ecc638ca96e40d286aad2..6d9cb42b3dc0f2f676ea39a5d84cb72e55c7d480 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1718,8 +1718,10 @@ 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)