Court ruling points to need for retailers to be vigilant about defective goods