--- ray/src/rt/aniso.c 1992/02/21 14:50:23 2.10 +++ ray/src/rt/aniso.c 1992/03/03 16:20:00 2.11 @@ -246,7 +246,8 @@ register RAY *r; /* diffuse reflection */ nd.rdiff = 1.0 - nd.trans - nd.rspec; - if (r->ro->otype == OBJ_FACE || r->ro->otype == OBJ_RING) + if (r->ro != NULL && (r->ro->otype == OBJ_FACE || + r->ro->otype == OBJ_RING)) nd.specfl |= SP_FLAT; getacoords(r, &nd); /* set up coordinates */