diff --git a/src/con.c b/src/con.c index db9ad5ee..0539c7ab 100644 --- a/src/con.c +++ b/src/con.c @@ -1424,7 +1424,7 @@ void con_update_parents_urgency(Con *con) { Con *parent = con->parent; bool new_urgency_value = con->urgent; - while (parent->type != CT_WORKSPACE && parent->type != CT_DOCKAREA) { + while (parent && parent->type != CT_WORKSPACE && parent->type != CT_DOCKAREA) { if (new_urgency_value) { parent->urgent = true; } else {