--- a/devices/vector/gdevpx.c
+++ b/devices/vector/gdevpx.c
@@ -326,7 +326,11 @@
 static bool
 pclxl_can_handle_color_space(const gs_color_space * pcs)
 {
-    gs_color_space_index index = gs_color_space_get_index(pcs);
+    gs_color_space_index index;
+    /* an image with no colorspace info arrived; cannot handle */
+    if (!pcs)
+        return false;
+    index = gs_color_space_get_index(pcs);
 
     if (index == gs_color_space_index_Indexed) {
         if (pcs->params.indexed.use_proc)
