It sounds like the person who was injured has a worker's compensation claim agains the subcontractor's worker's compensation insurance.  The injured person could only sue you if your negligence is what caused his injury.