Try to get convexity defects but getting an error

It still gives same error. I can find hull and contour but can’t find defects.