Index: scheduler/classes.c =================================================================== --- scheduler/classes.c (revision 7077) +++ scheduler/classes.c (working copy) @@ -256,6 +256,9 @@ return (NULL); } + if (c->num_printers == 0) + return (NULL); + /* * Make sure that the last printer is also a valid index into the printer * array. If not, reset the last printer to 0...