Index: uspace/lib/ui/src/ui.c
===================================================================
--- uspace/lib/ui/src/ui.c	(revision 9bf5da6fd88f56523e196500a9acd5dbd7b90071)
+++ uspace/lib/ui/src/ui.c	(revision 6d172f6f942ee586753c1ddcb2112db4d6e11b55)
@@ -311,4 +311,8 @@
 	gfx_color_t *color = NULL;
 
+	/* In case of null output */
+	if (ui->cgc == NULL)
+		return EOK;
+
 	gc = console_gc_get_ctx(ui->cgc);
 
