Court rules on contributory negligence case