diff --git a/src/partition.c b/src/partition.c
index 80855be2dbf72b5fde426e8861a7a19a6b5235e4..965c5a6142c44b8ddcc06c72ad533dba5e9f2b80 100644
--- a/src/partition.c
+++ b/src/partition.c
@@ -1205,7 +1205,7 @@ void partition_gather_weights(void *map_data, int num_elements,
 
     /* Skip un-interesting tasks. */
     if (t->type == task_type_send || t->type == task_type_recv ||
-        t->type == task_type_logger || t->implicit) continue;
+        t->type == task_type_logger || t->implicit || t->ci == NULL) continue;
 
     /* Get the task weight based on fixed cost for this task type. */
     double w = repartition_costs[t->type][t->subtype];