Index: uspace/lib/display/src/display.c
===================================================================
--- uspace/lib/display/src/display.c	(revision 762f989f5559e3f0b9a92580c987578e25a952c6)
+++ uspace/lib/display/src/display.c	(revision f7a90df6adfcf1a8e402e71eed9795cd4e9eabf6)
@@ -198,5 +198,5 @@
 /** Destroy display window.
  *
- * @param window Window
+ * @param window Window or @c NULL
  * @return EOK on success or an error code. In both cases @a window must
  *         not be accessed anymore
@@ -206,4 +206,7 @@
 	async_exch_t *exch;
 	errno_t rc;
+
+	if (window == NULL)
+		return EOK;
 
 	exch = async_exchange_begin(window->display->sess);
