diff --git a/src/t_stream.c b/src/t_stream.c index e2908d2c..3b7d022a 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -1171,7 +1171,7 @@ void xreadCommand(client *c) { if (strcmp(c->argv[i]->ptr,"$") == 0) { o = lookupKeyRead(c->db,key); - if (checkType(c,o,OBJ_STREAM)) goto cleanup; + if (o && checkType(c,o,OBJ_STREAM)) goto cleanup; if (o) { stream *s = o->ptr; ids[id_idx] = s->last_id;